Help - Search - Members - Calendar
Full Version: Sharing Files Between Virtual Sites
The Planet Forums > System Administration > Server Hardware > RaQ Support
B-H
I haven't researched this one yet and I thought someone might be able to give me a head start, or a point in the right direction.

I would like to share cgi-scripts between virtual sites. Is there an easy way to do this?

Let's say maindomain.com is the name for my RAQ. My cgi would NOT be installed on this domain name...

I want to install cgi.pl on domain1.com and be able to access it from domain2.com.

So I would have:

http://www.domain1.com/cgi-bin/cgi.pl installed on domain1.

Is there a way I can access the same Perl from:

http://www.domain2.com/cgi-bin/cgi.pl ???

Or should I just install copies on each virtual site if my software license allows that, and I don't believe it does.

I thought there might be a cool way to alias the domain names and/or directories on the RAQ...???

I hope I have explained this well enough to give you guru's enough info... Thanks in advance for any advice...
webbcite
I have some server wide scripts that I use:

Install in /home/sites/home/web/cgi-local/

add the following in /etc/httpd/conf/srm.conf in the aliases section:

QUOTE
ScriptAlias /cgi-local/ /home/sites/home/web/cgi-local/


Then you can call the script from:

/cgi-local/scriptname.pl

From any domain on the server.
tz23
I tried sharing a CGI directory on my ensim machine by editing /etc/httpd/conf/site98/cgi

I changed all the occurances of virtual/site98 to virtual/site70 then I restarted apache.

Apache does indeed look to the right CGI directory to execute CGIs, as evident by the logs, but every script returns the error, "Premature end of script headers" even for the simplest script.

The scripts work fine when called from site70's URL, just not site90's. I am guessing this is due to permissions set that don't allow CGIs to be executed by another user? How can I fix this?

I don't need global CGI's, just need 2 virtual hosts to share.
tz23
I still need to get this to work, but I found a how-to about it here:

http://forum.rackshack.net/showthread.php?...=&threadid=7328

I'll ask my question over there.

icon_smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.