Title: Vircual Hosting on Apache

Hello

Sorry the previous submission was a mistake!!!!!!

        I am quite frustrated with getting Virual hosting up and running and need help!

I am running SuSE Linux 6.1 with Apache Apache-1.3.4-24.  I have one IP address and want to host mutlipul domains on that one server.  I have gone over the docs inside and out and just cant make it work.  According to the docs it is so simple, but I must be missing something.

Here is the jist of what I have in the config file.

ServerName my.domain.net

NameVirtualHost my.ip.address

<VirtualHost my.ip.address>
        ServerName my.domain.net
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /home/domain.net/docs
        ErrorLog /home/domain.net/logs/error_log
        CustomLog /home/domain.net/logs/access_log common
       
        ScriptAlias /cgi-bin/ "/home/domain.net/cgi-bin/"
       
        <Directory "/home/domain.net/docs">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        </Directory>
       
        <Directory "/home/domain.net/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        </Directory>

</VirtualHost>

<VirtualHost my.ip.address>
        ServerName my.domain.com
        ServerAdmin [EMAIL PROTECTED]
        DocumentRoot /home/domain.com/docs
        ErrorLog /home/domain.com/logs/error_log
        CustomLog /home/domain.com/logs/access_log common
       
        ScriptAlias /cgi-bin/ "/home/domain.com/cgi-bin/"
       
        <Directory "/home/domain.com/docs">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        </Directory>
       
        <Directory "/home/domain.com/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
        </Directory>

</VirtualHost>

I have removed every reference to the default SuSE setup, (/usr/local/httpd/htdocs/), and it still goes there and ignores anything in the VirtualHost tags.

If I specify a default server, that one will work but it still ignores anything in the VirtualHost tags.

If anyone can help me, let me know.  Much thanks in advance.

Reply via email to