You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mike Rambour <mi...@b2systems.com> on 2002/12/10 21:20:11 UTC

[users@httpd] I cant get Apache to work without

the html file name ?  I installed Red-Hat 8 and Apache and the virtual 
servers are not working without  the file name as in "index.html" If I go 
to http://www.mydomain.com or http://www.mydomain.com/ I end up with the 
default Apache test page instead of the index, I can go to 
http://www.mydomain.com/index.html or any other file however.

   I have looked around and found a FAQ that mentioned problems with DNS 
causing the ending slash problem, I did a nslookup for my domain and 
test.mydomain.com and they both are going to the right IPs.  I also put the 
info in my /etc/hosts file and tried it on the machine with the same 
results. I also tried doing a rewrite, which I either did wrong or in the 
wrong place.  By the way what I am trying to do is setup virtual servers 
since we have 5 domains here at work and have 5 machines each hosting one 
domain, it seems silly to have 5 machines do the work one can do but I cant 
make it work.

    I have 2 sites on this machine.  Domain and test.domain and both are 
doing the same thing my httpd.conf looks like this :
# Virtual host www.domain.com
<VirtualHost x.x.x.7>
         DocumentRoot /home/html/www/public_html
         ErrorLog logs/error_test_log
         ServerAdmin myemail_addrs
         ServerName www.domain.com
         ServerSignature email
         TransferLog logs/access_test_log
         <Directory "/home/html/www/public_html/">
                 AllowOverride none
         </Directory>
         ServerSignature email
         TransferLog logs/access_www_log
         ErrorLog logs/error_www_log
</VirtualHost>
# Virtual host test.domain.com
<VirtualHost x.x.x.10>
         DocumentRoot /home/html/test/public_html
         ErrorLog logs/error_test_log
         ServerAdmin myemail_addrs
         ServerName test.domain.com
         ServerSignature email
         TransferLog logs/access_test_log
         <Directory "/home/html/test/public_html/">
                 AllowOverride none
         </Directory>
         ServerSignature email
         TransferLog logs/access_test_log
         ErrorLog logs/error_test_log
</VirtualHost>

~~~~~ I'd rather be sailing and  ~~~ .oooO  Oooo.  ~~~~~~~~~~~
Mike Rambour                                   (    )  (     )    
Bug Writer er...Programmer                \   )   (   / 
      mikey@b2systems.com                  \_)  (_/  
**********************************************************************
If you want to learn more about the ULTIMATE BRITISH sports car,
then take a look at   http://www.singercars.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
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