www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin@hyperreal.org, Giguere <zefre...@hotmail.com>
Subject general/2681: ServerAlias Behaving strangly with index.html
Date Thu, 23 Jul 1998 20:17:25 GMT

>Number:         2681
>Category:       general
>Synopsis:       ServerAlias Behaving strangly with index.html
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu Jul 23 13:20:01 PDT 1998
>Last-Modified:
>Originator:     zefrench@hotmail.com
>Organization:
apache
>Release:        1.3.0
>Environment:
Linux 2.0.34, Redhat 5.1
>Description:
I am trying to have host two virtual web site using name NOT ip.  The sites are 
behaving properly until I put the ServerAlias in.  The index.html of the server 
alias (min-com.inadco.net) is not the right one.  I displays the index.html of 
(www.inadco.net) instead of displaying the index.html of (www.min-com.html), but 
any other file then the index.html has not problems.  I try clearing cache, 
reloading my browser, tryed netscape 4.05 and explorer 4.01.


Relevant part of httpd.conf

NameVirtualHost 24.112.98.69

<VirtualHost 24.112.98.69>
        ServerAdmin webmaster@inadco.net
        ServerName inadco.net
        DocumentRoot /home/httpd/html
        ErrorLog /var/log/httpd/error_log
        TransferLog /var/log/httpd/transfer_log
        ScriptAlias /cgi-bin/ /home/httpd/cgi-bin
        Options ExecCgi Includes MultiViews Indexes SymLinksIfOwnerMatch
</VirtualHost>


<VirtualHost 24.112.98.69>
        ServerAlias min-com.inadco.net www.min-com.inadco.net
        ServerAdmin webmaster@inadco.ml.org
        ServerName www.min-com.inadco.net
        DocumentRoot /home/httpd/www.min-com.inadco/html
        ErrorLog /home/httpd/www.min-com.inadco/logs/error.log
        TransferLog /home/httpd/www.min-com.inadco/logs/transfer.log
        ScriptAlias /cgi-bin/ /home/httpd/www.min-com.inadco/cgi-bin
        Options ExecCgi Includes MultiViews Indexes SymLinksIfOwnerMatch
</VirtualHost>
>How-To-Repeat:


The following urls are working and give the right web page
http://min-com.inadco.net/index.html
http://www.min-com.inadco.net/
http://www.min-com.inadco.net/index.html

http://min-com.inadco.net/ should return the same index.html but instead it 
returns the index.html for http://www.inadco.net/

BUT
http://www.min-com.inadco.net/homes/homes_for_sale.html
http://min-com.inadco.net/homes/homes_for_sale.html
and most files I have tested work.
>Fix:

>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message