VirtualHosts and common SSI scripts

VirtualHosts and common SSI scripts

Post by Catherine De Garrin » Fri, 06 Apr 2001 00:53:17



Hi,

Where to put our common SSI scripts, that should be
used by our VHosts webmasters (like tools) ?
In other words, how to bypass the DocumentRoot directive for SSIs,
in virtualHosts that are subdirectories of the main server ?
(Apache 1.3.6 on Solaris2.6).

Example of configuration :
DocumentRoot /htdocs
<Directory /htdocs>
        Options Includes
</Directory>

<VirtualHost IP_address>
DocumentRoot /htdocs/subdomain
ServerName www.subdomain.domain.com
...
</VirtualHost>

In a www.subdomain.domain.com html code,
that is, i.e., /htdocs/subdomain/index.html
<!--#exec cmd="/htdocs/ssi/my_script.sh">

Thanks for your help !

Catherine

 
 
 

VirtualHosts and common SSI scripts

Post by Joshua Sliv » Fri, 06 Apr 2001 09:30:21



Quote:> Hi,
> Where to put our common SSI scripts, that should be
> used by our VHosts webmasters (like tools) ?
> In other words, how to bypass the DocumentRoot directive for SSIs,
> in virtualHosts that are subdirectories of the main server ?
> (Apache 1.3.6 on Solaris2.6).
[...]
> In a www.subdomain.domain.com html code,
> that is, i.e., /htdocs/subdomain/index.html
> <!--#exec cmd="/htdocs/ssi/my_script.sh">

Two suggestions:

1. Use an "Alias" in the server configuration (outside any
virtual host) to map a URL to a directory that is the same
for all vhosts.

2. Use <!--#include virtual.  Avoid the "exec" commands if you can.

--
Joshua Slive

http://slive.ca/

 
 
 

1. common CGIs, suEXEC and VirtualHosts

I have seen others with similar problems in the past... now it is my
turn to ask.

What can be done to use common CGI scripts in a VirtualHost
environment when using suEXEC?

In particular, right now I am looking to install a log stats CGI
script that I wish all VirtualHost users to have access to. Likely I
will add more common scripts in the future (If I can find a solution,
that is). I don't mind any such scripts being run as the global user
and group.

Currently I have a global  ScriptAlias /cgi-bin/ .... directive and
every VirtualHost has a ScriptAlias /cgi-local/ ... directive with
both User and Group defined.

If anyone has run into this problem and overcome it in some way,
please advise.

Thanks much!

-Brian M. Platz

2. Stupid Question on Rxvt

3. Apache SSI + Virtualhost

4. FS: 166 Mhz Alpha AXP Linux system (Germany)

5. Apache 1.3.0, virtualhosts and SSI

6. gcj crosscompiler for ppc (405)?

7. Setup VirtualHost and httpd processes for each VirtualHost

8. Linux box as IPX router

9. Default httpd.conf says Expected </VirtualHost> but saw </VirtualHost>

10. Matrox Mystique ands X.

11. CGI scripts and VirtualHosts in Apache 1.1.1

12. common shell scripts that one must have?

13. A book on common useful shell scripts ?