For my virtual hosts, I also needed the following :
 
 <Directory /home/www/o2s>
            Options execcgi
            AllowOverride All
            Order Allow,Deny
            Allow from All
 </Directory>
 
So, a complete virtual host entry would look something like this:
 

<VirtualHost *:80>

    DocumentRoot /var/www/html/location1

    ServerName www.firstdomain.ca

 

        <Directory /home/www/o2s>
            Options execcgi
            AllowOverride All
            Order Allow,Deny
            Allow from All
        </Directory>

</VirtualHost>

 

 

In the Options line, you can also specify indexes (i.e. Options indexes execcgi ) to create a listing of the files in the folder.  This probably isn't what you want for a public server though.

 

HTH.

 

Shawn


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of SteveC
Sent: Wednesday, April 07, 2004 12:50 PM
To: [EMAIL PROTECTED]
Subject: [clug-talk] Apache Virtual Server

Hello,

 

I’m a newbie and am hoping for some help in my learning curve.  I have read the documentation at http://httpd.apache.org/docs/vhosts/ , the Red Hat manual and the Red Hat Linux 9 Bible.  I must be missing something.

 

I am using Red Hat 9 with Apache Server and am setting up a Virtual Web Server behind an SMC Router.  I have set the router to forward port 80 to the server but am having trouble.  The server forwards incoming traffic but it goes to the location to “handle all unhandled incoming requests” rather than the “virtual directory”.  I have set up the DNS correctly (I think).  I would appreciate suggestions why the web server is unable to forward to the desired location.

 

Thank you, in advance.

 

Regards,

Steve

 

 

My configuration is as follows:

 

All PC’s in the network have static IP’s.  (192.168.2.X)

 

The httpd.conf has the following:

 

#Listen 12.34.56.78:80

Listen 80

 

ServerName servername.domain.ca:80

 

NameVirtualHost *:80

 

<VirtualHost *:80>

    DocumentRoot /var/www/html/location1

    ServerName www.firstdomain.ca

</VirtualHost>

 

<VirtualHost *:80>

    DocumentRoot /var/www/html/location2

    ServerName www.seconddomain.ca

</VirtualHost>

 

 

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to