Using SuSE 10.0, Apache 2.0.54.  Looked through the Apache online manual
on setting up virtual hosts and created a vhosts.conf file - mostly
copy/paste from a template (see listing below).

I have also set up bind on my LAN to resolve both "genesis" (IN A
192.168.1.65) and "linux-install" (IN CNAME genesis).

I restarted apache and bind daemons after changes to their respective
files.

http://genesis  works fine and shows index.html in "/home/www/html"
but ...
http://linux-install shows the same index.html as above instead of the
directory listing of the Linux distribution tree I have installed
@ /mnt/C.

I have tried replacing * with IP# but same result.  Defining "linux-install"
as A record - same result.

Any ideas/suggestions on could be missing in my setup?

        ================== begin vhosts.conf ==================

NameVirtualHost *:80

<VirtualHost *:80>

    ServerName genesis.silverarc.biz
    ServerAdmin [EMAIL PROTECTED]

    DocumentRoot /home/www/html/

    ErrorLog /var/log/apache2/genesis-error_log
    CustomLog /var/log/apache2/genesis-access_log combined

    HostnameLookups Off

    UseCanonicalName Off

    ServerSignature On


    <Directory "/home/www/html/"> 
    
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    
    </Directory>

</VirtualHost>

<VirtualHost *:80>

    ServerName linux-install.silverarc.biz
    ServerAdmin [EMAIL PROTECTED]

    DocumentRoot /mnt/C

    ErrorLog /var/log/apache2/linux-install-error_log
    CustomLog /var/log/apache2/linux-install-access_log combined

    HostnameLookups Off

    UseCanonicalName Off

    ServerSignature On

    <Directory "/mnt/C"> 
    
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    
    </Directory>

</VirtualHost>

         ================== end vhosts.conf ==================

Thanks.
-- 
Arun Khan
Linux is like a wigwam - no gates, no windows, apache inside



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-india-help mailing list
linux-india-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to