LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2 Virtual Host SSI problems (https://www.linuxquestions.org/questions/linux-software-2/apache2-virtual-host-ssi-problems-355309/)

superscrappy 08-20-2005 05:53 PM

Apache2 Virtual Host SSI problems
 
I am attempting to allow virtual hosts to run ssi's. I can get ssi's to work for the htdocs directory but not for the virtual hosts. Below is the virtual hosts section of httpd.conf. I am starting off as simple as I can with a

<!--#echo var="DATE_LOCAL" -->

line.

All modules are statically compiled for my Apache2.0 server.

Code:

<VirtualHost *:80>
    DocumentRoot /root/path/to/virtual/host
    Options +Includes
    XBitHack Full
    ServerName www.myvirtualhost.com
    ServerAlias myvirtualhost.com *myvirtualhost.com
    AddType text/html .html .shtml
    AddHandler server-parsed .html .shtml
<Directory /root/path/to/virtual/host>
    Options All
    AllowOverride None
    XBitHack Full
    Options FollowSymLinks
    AllowOverride None
    AddType text/html .html .shtml
    AddHandler server-parsed .html .shtml
</Directory>
</VirtualHost>

Again, the ssi's work just fine for the htdocs directory (default root directory).

I appreciate any suggestions anyone might have.

-superscrappy

superscrappy 08-30-2005 05:04 PM

I found my very obvious mistake.

Inside my virtual hosts directory that I wanted to use SSI's I needed to have the following:

Code:

Options +Includes
I had thought that:
Code:

Options All
would have included this option but I should probably do a little more research on the subject.

SS


All times are GMT -5. The time now is 08:18 PM.