httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] Interesting Problem
Date Tue, 27 Nov 2012 08:15:26 GMT


----- Original Message -----
> 
> 
> # Catch all VHost, traffic that is NOT going to domain.net
> <VirtualHost _default_:443>
> ServerName localhost_name.domain.net
> 
> RewriteEngine On
> RewriteCond %{HTTP_HOST} ^192\.168\.123\.3$
> RewriteRule .* https://domain.net [R,L]
> # or do what ever you like with this
> 
> -->ProxyPass / https://192.168.124.3/
> -->ProxyPassReverse / https://192.168.124.3/
> <Proxy *>
> Order allow,deny
> Allow from all
> </Proxy>
> .# SSL stuff here
> .
> .
> 
> 
> But if your servers are part of a domain you shouldn't be using their
> IP's any way but their FQDN when accessing.
> 
> 
> On Tue, Nov 27, 2012 at 1:36 PM, Chris Arnold <
> carnold@electrichendrix.com > wrote:
> 
> 
> 
> # Catch all VHost, traffic that is NOT going to domain.net
> <VirtualHost _default_:443>
> ServerName localhost_name.domain.net
> 
> -->ProxyPass / https://192.168.124.3/
> -->ProxyPassReverse / https://192.168.124.3/
> <Proxy *>
> Order allow,deny
> Allow from all
> </Proxy>
> .# SSL stuff here
> .
> .
> 
> 
> # Catch all VHost, traffic that is NOT going to
> domain.net<http://domain.net:443>
> <VirtualHost _default_:443>

That's not true. _default_ doesn't make the vhost catchall,
or default. _default_ is the same as *

A vhost with _default_ or * for that matter, will only be
default if, in a namebased setup, you put it first.

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message