Re: [users@httpd] Apache + Tomcat Load Balancing

2012-03-16 Thread Igor Cicimov
Ok lets summarize, you have one apache load balancing the two backend apaches which are load balancing the two backend tomcat servers. I personally can't see any fault in this line up or your apache proxy configuration and no reason really why would tomcat cluster session replication stop working .

Re: [users@httpd] Issue with trailing slashes after rewrite

2012-03-16 Thread Igor Cicimov
RewriteCond %{HTTP_HOST} ^foo\.mydomain\.com$ RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^/(.*) /foo/$1 [L] sorry missed the ^ above. On Sat, Mar 17, 2012 at 1:49 PM, Igor Cicimov wrote: > First SERVER_NAME is apache internal NOT a http header sent with the > r

Re: [users@httpd] Issue with trailing slashes after rewrite

2012-03-16 Thread Igor Cicimov
First SERVER_NAME is apache internal NOT a http header sent with the request thus will match ANY request. Use HTTP_HOST instead. You also need to escape the dots in the host name. Second, from the documentation: "To combine new and old query strings, use the [QSA] flag." so by using QSA you are

[users@httpd] Different pages served depending on IP address or domain addressing

2012-03-16 Thread Prasanna Mulgaonkar
Have a strange setup behavior that I have not been able to find an answer to. I have a server running Apache set up at IP address 50.X.Y.Z I have www.mydomain.com redirected from our domain hoster to that ip address. At the top level of that apache stack (/var/www/html), i have an index.ht

Re: [users@httpd] apache 2.4 virtualhosts

2012-03-16 Thread Brett @Google
On Fri, Mar 16, 2012 at 6:41 PM, Eric Covener wrote: >> I'm just saying the documentation of the new matching scheme is >> deceptive, not that any code should be changed.. > > Operative point I'm trying to make is that there should not be a new > matching scheme -- at best only new doc that didn't

Re: [users@httpd] 'redirect' to a single domain name

2012-03-16 Thread Lester Caine
Lester Caine wrote: Tom Evans wrote: Tapped all that out, and THEN remembered that this is a FAQ: http://httpd.apache.org/docs/2.2/rewrite/remapping.html#canonicalhost TA ... Problem solved :) Helps if you edit the .co.uk record rather than the .org.uk one -- Lester Caine - G8HFL ---

Re: [users@httpd] 'redirect' to a single domain name

2012-03-16 Thread Lester Caine
Tom Evans wrote: Tapped all that out, and THEN remembered that this is a FAQ: http://httpd.apache.org/docs/2.2/rewrite/remapping.html#canonicalhost TA ... PS: the same Lester Caine who posts on the register boards? Probably :) Don't get much time to read the news these days ... -- Lester Cai

Re: [users@httpd] 'redirect' to a single domain name

2012-03-16 Thread Tom Evans
On Fri, Mar 16, 2012 at 12:25 PM, Lester Caine wrote: > OK ... I've always set the server up so that both xxx.co.uk and > www.xxx.co.uk are processed, but the 'quality police' are now flagging this > as wrong, and saying that one or the other should be 'returned' by the site. > Since some sites al

[users@httpd] 'redirect' to a single domain name

2012-03-16 Thread Lester Caine
OK ... I've always set the server up so that both xxx.co.uk and www.xxx.co.uk are processed, but the 'quality police' are now flagging this as wrong, and saying that one or the other should be 'returned' by the site. Since some sites also have xxx.com or other options this does make sense, the q

Re: [users@httpd] Using HostName like ENVVAR

2012-03-16 Thread Tom Evans
On Fri, Mar 16, 2012 at 9:23 AM, Oto BREZINA wrote: > I have multiple Virtual Host with almost same configuration they differ only > in ServerName, ServerAdmin DocumentRoot and logfile. > DocumentRoot is composed of served files location and hostname, logs have > servername in filename too. > > To

[users@httpd] Using HostName like ENVVAR

2012-03-16 Thread Oto BREZINA
I have multiple Virtual Host with almost same configuration they differ only in ServerName, ServerAdmin DocumentRoot and logfile. DocumentRoot is composed of served files location and hostname, logs have servername in filename too. To make things easier I moved common some parts into file whitc

Re: [users@httpd] apache 2.4 virtualhosts

2012-03-16 Thread Eric Covener
> I'm just saying the documentation of the new matching scheme is > deceptive, not that any code should be changed.. Operative point I'm trying to make is that there should not be a new matching scheme -- at best only new doc that didn't get backported since it also dropped _default_ and NameVirtu

RE: [users@httpd] Apache + Tomcat Load Balancing

2012-03-16 Thread Kashif Rahman
Actually we are load balancing tomcat too. Thank you, Best Regards, Kashif Rahman Principal SCM Engineer Description: vopium_signature_logo Vopium A/S | Office# 2, 7th Floor, Shaheen Complex | 38 Abbot Road Lahore | Pakistan | t + 92 42 6316491 | f + 92 42 6316492 Description:

Re: [users@httpd] apache 2.4 virtualhosts

2012-03-16 Thread Eric Covener
On Fri, Mar 16, 2012 at 4:08 AM, Brett @Google wrote: > > # This first-listed virtual host is also the default for *:80 > ServerName www.example.com > ServerAlias example.com *.example.com > DocumentRoot /www/domain > > > > ServerName other.example.com > DocumentRoot /www/otherdomain > > > Abo