You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Tomas Pospisek <tp...@spin.ch> on 2000/10/06 11:31:55 UTC
config/6634: ServerAlias behaves strangely
>Number: 6634
>Category: config
>Synopsis: ServerAlias behaves strangely
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Fri Oct 06 02:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: tpo2@spin.ch
>Release: 1.3.12
>Organization:
apache
>Environment:
Linux eisberg 2.2.17 #1 Sun Jun 25 09:24:41 EST 2000 i586 unknown
Debian woody
>Description:
The following does not work:
<VirtualHost 194.6.185.192>
DocumentRoot /var/www/
ServerName sourcepole.ch
ServerAlias *.sourcepole.ch
DirectoryIndex index.d.xml index.xml index.html
TransferLog /var/log/apache/sourcepole.ch-access.log
</VirtualHost>
<VirtualHost 194.6.185.192>
DocumentRoot /var/www/
ServerName sourcepole.com
ServerAlias *.sourcepole.com
DirectoryIndex index.xml index.d.xml index.html
TransferLog /var/log/apache/sourcepole.com-access.log
</VirtualHost>
That is, the *transferlog* is split *correctly* when accessing:
sourcepole.ch, www.sourcepole.ch, sourcepole.com, www.sourcepole.com
but no matter what you access, you allways get index.xml when you access
directory.
If you write the same config the other way round, it works though:
<VirtualHost 194.6.185.192>
DocumentRoot /var/www/
ServerName www.sourcepole.ch
ServerAlias sourcepole.ch
DirectoryIndex index.d.xml index.xml index.html
TransferLog /var/log/apache/sourcepole.ch-access.log
</VirtualHost>
<VirtualHost 194.6.185.192>
DocumentRoot /var/www/
ServerName www.sourcepole.com
ServerAlias sourcepole.com
DirectoryIndex index.xml index.d.xml index.html
TransferLog /var/log/apache/sourcepole.com-access.log
</VirtualHost>
Thanks,
*t
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> 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! ]