>Number: 5358 >Category: config >Synopsis: Virtual Host work crazily >Confidential: no >Severity: critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Nov 24 07:50:00 PST 1999 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.9 >Environment: Linux somewhere 2.0.33 #5 Thu Jul 30 16:15:38 EST 1998 i686 gcc version 2.7.2 Slackware 3.1 >Description: I have upgraded my apache from 1.2.6 to 1.3.9, to use the new functionnality of this version. I have about 25 virtuals hosts on the same machine. I have modified the httpd.conf to use the new directive NameVirtualHost and put one IP adress in each VirtualHost directive. Now, when I lauch the server, some virtual host display the content of their own DocumentRoot directory, and some other display the content of the DocumentRoot of the main server. Now, if I kill the httpd en lauch it again, this is not the same virtuals hosts which display the content of their own DocumentRoot directory. I have did one test and the result is like this: SITE TEST 1 TEST 2 www.carnaval.gf don't work don't work www.stand-informatique.gf don't work don't work www.autotec.gf work don't work www.guyane.cci.fr work don't work www.netplus.gf work work www.constructnet.gf don't work work www.jasminrent-a-car.gf don't work don't work www.3design.gf don't work work www.audit-tools.com don't work don't work www.hlm.gf don't work don't work www.outils-audit.com work don't work www.orpaillage.com don't work work www.ouest.edu.gf work don't work ouest.edu.gf don't work don't work www.lfg.gf work work www.tourisme-guyane.gf work work www.guyane-amerique.gf work work www.apple-tech.com don't work work my httpd.conf is the next: ServerType standalone ServerRoot "/usr/local/apache" PidFile /var/run/httpd.pid ScoreBoardFile /usr/local/apache/logs/httpd.scoreboard Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 150 MaxRequestsPerChild 0 Port 80 User httpd Group httpd ServerAdmin [EMAIL PROTECTED] DocumentRoot "/usr/local/apache/htdocs" NameVirtualHost 207.17.67.6
<VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/carnaval ServerName www.carnaval.gf ErrorLog logs/carnaval.gf-error_log CustomLog logs/carnaval.gf-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/stand-informatique ServerName www.stand-informatique.gf ErrorLog logs/stand-informatique.gf-error_log CustomLog logs/stand-informatique.gf-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/autotec ServerName www.autotec.gf ErrorLog logs/autotec.gf-error_log CustomLog logs/autotec.gf-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/guyane.cci.fr ServerName www.guyane.cci.fr ErrorLog logs/guyane.cci.fr-error_log CustomLog logs/guyane.cci.fr-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/netplus.gf ServerName www.netplus.gf ErrorLog logs/netplus-error_log CustomLog logs/netplus-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/constructnet ServerName www.constructnet.gf ErrorLog logs/constructnet-error_log CustomLog logs/constructnet-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/jasmin ServerName www.jasminrent-a-car.gf ErrorLog logs/jasmin-error_log CustomLog logs/jasmin-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/evrard/www ServerName www.3design.gf ErrorLog logs/3design-error_log CustomLog logs/3design-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/audit/www ServerName www.audit-tools.com ErrorLog logs/audit-error_log CustomLog logs/audit-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/hlm ServerName www.hlm.gf ErrorLog logs/hlm-error_log CustomLog logs/hlm-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/audit/www ServerName www.outils-audit.com ErrorLog logs/audit-error_log CustomLog logs/audit-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/orpa/www ServerName www.orpaillage.com ErrorLog logs/orpaillage-error_log CustomLog logs/orpaillage-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/ouestedu/www ServerName www.ouest.edu.gf ErrorLog logs/ouestedu-error_log CustomLog logs/ouestedu-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/ouestedu/www ServerName ouest.edu.gf ErrorLog logs/ouestedu-error_log CustomLog logs/ouestedu-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/lfg ServerName www.lfg.gf ErrorLog logs/lfg-error_log CustomLog logs/lfg-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/ctg ServerName www.tourisme-guyane.gf ErrorLog logs/ctg-error_log CustomLog logs/ctg-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/guyane-amerique ServerName www.guyane-amerique.gf ErrorLog logs/guyam-error_log CustomLog logs/guyam-access_log common </VirtualHost> <VirtualHost 207.17.67.6> ServerAdmin [EMAIL PROTECTED] DocumentRoot /web/htdocs/asm ServerName www.apple-tech.com ErrorLog logs/apple-tech-error_log CustomLog logs/apple-tech-acces_log common </VirtualHost> >How-To-Repeat: >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include <[EMAIL PROTECTED]> in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]