httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 56500] New: vhosts priority order with wildcard
Date Wed, 07 May 2014 23:03:34 GMT

            Bug ID: 56500
           Summary: vhosts priority order with wildcard
           Product: Apache httpd-2
           Version: 2.5-HEAD
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Core

OS: Debian Wheezy x64
Server version: Apache/2.2.22 (Debian)

Hey there, I wanted to create a server default page and found following error.
At first, I have configuration files like 00_master.conf, domain1.conf.

In the 00_master.conf you can find the defined vhost for the admin panel (I'm
using an iscp []). Here's an example:

<VirtualHost SERVERIP:80>
    ServerName admin.srv01.example.tld (url to the panel)
    DocumentRoot /var/www/.../panel/

For the domains I'm using following:

<VirtualHost SERVERIP:80>
    ServerName domain1.tld
    ServerAlias www.domain1.tld
    DocumentRoot /var/www/.../domain1.tld/

No to my problem. As already mentioned I want to add a server default page. So
if someone is visiting an url like "doesnotexists.domain1.tld" or
"asd.admin.srv01.example.tld" I want to show a default page with an static html
output like "Site not found" or something like that.

For that I added in the 00_master.conf over the first vhost another vhost,
which should be used if no ServerName is defined. I tried with a hardcoded ip
and it works fine. Here's an example:

<VirtualHost SERVERIP:80>
    DocumentRoot /var/www/.../default

But if I use an wildcard like *:80 or _default_:80 the vhost will not be used.
I think it's because of a wrong priority of the vhosts.

Best regards,

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message