httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew A. Sabitov" <sabi...@catalysis.nsk.su>
Subject [users@httpd] Virtual Host && root auto indexing problem
Date Thu, 15 Jan 2004 14:24:26 GMT

Hello everybody!

I used apache 1.3.20 under Linux SuSE 7.3, and now I updated it to 2.0.48.  
As result I have strange bug I cannot find. This host supports two virtual
sites: www.inetlab.com and np.inetlab.com. This is concerning part of
httpd.conf (I changed only these settings in 2.0.48 default config, it is 
not old version config.)

========================================================================
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

<VirtualHost *:80>
        ServerName inetlab.com
        ServerAlias inetlab.com www.inetlab.com 
        ServerAdmin webmaster@inetlab.com
        DocumentRoot /var/www/www.inetlab.com/htdocs
        ScriptAlias /cgi-bin/ "/var/www/www.inetlab.com/cgi-bin/"
        <Directory "/var/www/www.inetlab.com/cgi-bin">
                AllowOverride None
                Options ExecCGI
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
<VirtualHost *:80>
        ServerName np.inetlab.com
        ServerAdmin webmaster@inetlab.com
        DocumentRoot /var/www/netpay/htdocs
        ScriptAlias /cgi-bin/ "/var/www/netpay/cgi-bin/"
        <Directory "/var/www/netpay/cgi-bin">
                AllowOverride None
                Options ExecCGI
                Order allow,deny
                Allow from all
        </Directory>
</VirtualHost>
========================================================================

All requests to inetlab.com or www.inetlab.com work well. 

When I requst this URL http://np.inetlab.com/index.html it works correct
too. But if I requets http://np.inetlab.com or http://np.inetlab.com/ it
fails, because it tries to work with
/var/www/www.inetlab.com/htdocs/index.html instead of
/var/www/netpay/htdocs/index.html !!!!! I cannot find any reason why it 
works such funny way :( 




additionaly, content of /var/www/netpay/htdocs/index.html
========================================================================
<html>
<body>
np.inetlab.com
</body>
</html>
========================================================================

content of /var/www/www.inetlab.com/htdocs/index.html
========================================================================
<html>
<head>
  <meta http-equiv="refresh" content="0; url=index.php">
</head>
</html>
========================================================================







-- 
       ,,,,
       /'^'\
      ( o o )
--oOOO--(_)--OOOo------------------------------------------------
|                  Andrew A. Sabitov
|                  Email: sabitov@catalysis.nsk.su
|                  WWW:   fir.catalysis.nsk.su/~sabitov
| .oooO   Еж птица гордая - пока не пнешь, не полетит!
| (   )   Oooo.
---\ (----(   )-------------------------------------------------
    \_)    ) /
          (_/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message