Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-12 Thread Matus UHLAR - fantomas
On 08.12.10 12:45, Tom Evans wrote: The best way to avoid this problem is not dummy vhosts, it is to not serve multiple websites from the same IP if you intend on handling SSL for any one of those websites and not the others. SSL sites that share a certificate (eg, if you have a wildcard

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-12 Thread Matus UHLAR - fantomas
On 08.12.2010 12:48, Tom Evans wrote: ... and serve data from the www.hosta.com vhost. On 08.12.10 13:21, b...@kanka.de wrote: .. but at this point apache knows that there is something wrong with the request or the configuration, and should throw an error instead of serving the wrong

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Matus UHLAR - fantomas
On 07.12.10 19:08, b...@kanka.de wrote: I've switched to a new debian server with apache 2.2.9 and installed the 'phpgadmin' tool via a debian package. This copies the php sources outside of /var/www and sets an 'alias ..' directive in /etc/apache2/conf.d/ Now what happens to my surprise

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 11:38, Matus UHLAR - fantomas wrote: Now what happens to my surprise is that /phppgadmin is accessible via all my virtual hosts, not just the one (base host) where it is defined. ... On 07.12.10 20:27, Joost de Heer wrote: SSL namebased virtualhosting will not work. ..

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Tom Evans
On Wed, Dec 8, 2010 at 11:13 AM, b...@kanka.de wrote: Just to make it clear: What I perceived as a .. quirky behaviour of apache was that it did _not_ throw an error when https://not-ssl-configured-domain.xx is requested. How to run several https domains with one IP was not my challenge. /

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 12:48, Tom Evans wrote: Until the incoming request has been received and decrypted, apache has no clue that the domain requested was 'not-ssl-configured-domain.xx'. That's kind of the point of SSL. Ok, thanks for pointing that out. Apache determines which vhost to use

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Eric Covener
ServerName ... exclusive directive for the config (and logic behind) could make sense, or maybe it exists and my weary eyes overread it. This facility is effectively already there by creating a default (first-listed) name-based virtual host and handling unspecified domains that show up on that

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 13:31, Eric Covener wrote: ServerName ... exclusive directive for the config (and logic behind) could make sense, ... This facility is effectively already there by creating a default (first-listed) name-based virtual host and handling unspecified domains that show up on

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Tom Evans
On Wed, Dec 8, 2010 at 12:21 PM, b...@kanka.de wrote: Hello, On 08.12.2010 12:48, Tom Evans wrote: Until the incoming request has been received and decrypted, apache has no clue that the domain requested was 'not-ssl-configured-domain.xx'. That's kind of the point of SSL. Ok, thanks for

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 13:45, Tom Evans wrote: .. but at this point apache knows that there is something wrong with the request or the configuration, and should throw an error instead of serving the wrong data. Typically, you don't even get to that point. Most browsers will throw a fit if they

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 14:13, Tom Evans wrote: ... And the experienced user has seen these warnings often, so he regularly clicked on I understand the risks and accepted the ssl session anyway - and it's even wiser in most cases to do because mostly you're better off (in web 2.0 services for

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Eric Covener
On Wed, Dec 8, 2010 at 7:43 AM, b...@kanka.de wrote: Hello, On 08.12.2010 13:31, Eric Covener wrote: ServerName ... exclusive directive for the config (and logic behind) could make sense, ... This facility is effectively already there by creating a default (first-listed) name-based

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 15:03, Eric Covener wrote: And at least 50% of the world would think whatever you intuitively expect to happen in this case is quirky. That's why there's a configuration file. I expect nothing to happen intuitively. What happens now, serving any-SSL violating the vhost

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread Eric Covener
On Wed, Dec 8, 2010 at 9:54 AM, b...@kanka.de wrote: Hello, On 08.12.2010 15:03, Eric Covener wrote: And at least 50% of the world would think whatever you intuitively expect to happen in this case is quirky. That's why there's a configuration file. I expect nothing to happen

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-08 Thread breg
Hello, On 08.12.2010 16:01, Eric Covener wrote: .. I propose a less quirky configuration, for example with ServerName .. exclusive So it would handshake with the wrong information and serve the wrong virtualhosts error documents? The exclusive defined vhost would do what the second vhost in

[us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread breg
Hello, I've switched to a new debian server with apache 2.2.9 and installed the 'phpgadmin' tool via a debian package. This copies the php sources outside of /var/www and sets an 'alias ..' directive in /etc/apache2/conf.d/ Now what happens to my surprise is that /phppgadmin is accessible via

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread Eric Covener
What works and should _not_ work: https://twosite.com/phppgadmin You only listed one port 443 virtualhost, and it has the Alias in it. Apache finds the best match for the IP:Port, then looks at the ServerName/ServerAlias in that set of NameVirtualHost's.

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread breg
Hello, On 07.12.2010 19:13, Eric Covener wrote: What works and should _not_ work: https://twosite.com/phppgadmin You only listed one port 443 virtualhost, and it has the Alias in it. Apache finds the best match for the IP:Port, then looks at the ServerName/ServerAlias in that set of

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread Eric Covener
On Tue, Dec 7, 2010 at 1:26 PM, b...@kanka.de wrote: Hello, On 07.12.2010 19:13, Eric Covener wrote: What works and should _not_ work: https://twosite.com/phppgadmin You only listed one port 443 virtualhost, and it has the Alias in it. Apache finds the best match for the IP:Port, then

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread breg
Hello, On 07.12.2010 19:35, Eric Covener wrote: ... No, based on my short description of how a virtualhost is found, you never jump to 2nd-best IP:PORT match to match up a servername/serveralias ... Right, so I'd expect apache to throw an error - instead it uses a ServerName from another

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread Joost de Heer
Now what happens to my surprise is that /phppgadmin is accessible via all my virtual hosts, not just the one (base host) where it is defined. All your virtual hosts or all your SSL virtual hosts? https://onesite.com/phppgadmin https://twosite.com/phppgadmin SSL namebased virtualhosting

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread breg
Hi, On 07.12.2010 20:27, Joost de Heer wrote: Now what happens to my surprise is that /phppgadmin is accessible via all my virtual hosts, not just the one (base host) where it is defined. All your virtual hosts or all your SSL virtual hosts? The latter. https://onesite.com/phppgadmin

Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread Eric Covener
So apache should throw an error, right? Apache uses the first virtual host in each set of NameVirtualHost's as a default/catch-all after IP-based vhosting as selected that host:port. -- Eric Covener cove...@gmail.com - The

[us...@httpd] Hacked / Re: [us...@httpd] Alias-ed directory appears on multiple virtual hosts

2010-12-07 Thread breg
Ho, On 07.12.2010 20:33, Eric Covener wrote: Apache uses the first virtual host in each set of NameVirtualHost's as a default/catch-all after IP-based vhosting ... Now I understand, thanks for your patience in explaining it. What I did now is add a dummy-domain on top of my SSL config: ##