[users@httpd] MOD_REWRITE MOD_JK Altering host

2011-05-11 Thread Ben Short
Hi, I want to configure apache to alter the host before the request it passed to my jk handler. Example: a.domain.com needs to be altered to b.domain.com I have tried.. RewriteRule ^(.*) http://a.domain.com$1 [QSA,L,PT] here is the log output rewrite.log 192.168.1.46 - -

[us...@httpd] vhosts logging to the same log file

2010-12-08 Thread Ben Short
Hi, Is it safe to have 2 vhosts logging to the same log file? Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more info

[us...@httpd] Remove cookie from request

2010-12-01 Thread Ben Short
Hi, Is it possible to remove a cookie from an incoming request before the request is passed to a mod jk handler? Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http

Re: [us...@httpd] Pre compressed css and javascript

2010-10-08 Thread Ben Short
RewriteCond %{HTTP_USER_AGENT} !Safari [OR] RewriteCond %{HTTP_USER_AGENT} Chrome RewriteRule ^(.*)$ $1.cgz [QSA,L] On 6 October 2010 13:00, Ben Short b...@benshort.co.uk wrote: I got it all working. My configuration is shown below. Thanks for the help. VirtualHost *:80        ServerAdmin ben.sh

Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-06 Thread Ben Short
Hi Craig, Some background... As part of the build process my web application minimizes and gzips all the style sheets and javascript files. So I end up with main.css main-min.css and main-min.css.gz. The web page will make a request for main.css but I need to use rewrite to return then

Re: [us...@httpd] Rewrite main.css to main-min.css

2010-10-06 Thread Ben Short
Never mind, I altered my build to not include the main.css and name the main-min.css main.css. Thanks On 6 October 2010 09:29, Ben Short b...@benshort.co.uk wrote: Hi Craig, Some background... As part of the build process my web application minimizes and gzips all the style sheets

Re: [us...@httpd] Pre compressed css and javascript

2010-10-06 Thread Ben Short
I got it all working. My configuration is shown below. Thanks for the help. VirtualHost *:80 ServerAdmin ben.sh...@nexusalpha.com DocumentRoot /usr/local/apache2/docs/www.journeycheck.southwesttrains.co.uk/ ServerName www.journeycheck.southwesttrains.co.uk

[us...@httpd] Rewrite main.css to main-min.css

2010-10-05 Thread Ben Short
Hi, Is it possible to use mod_rewrite to alter a request for main.css to main-min.css? Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org

Re: [us...@httpd] Pre compressed css and javascript

2010-10-04 Thread Ben Short
Hi Eric, I have the DocumentRoot in my vhost. Sorry I omitted some of the configuration. Ben On 4 October 2010 14:55, Eric Covener cove...@gmail.com wrote: RewriteCond %{REQUEST_FILENAME}.gz -f in vhost context, you have to add the document root in yourself, since the request hasn't

[users@httpd] Pre compressed css and javascript

2010-10-04 Thread Ben Short
Hi, I have configured my httpd instance to serve pre-compressed css and java script. But I have two issues. My httpd configuration is as follows. RewriteEngine On RewriteLog logs/rewrite.log RewriteLogLevel 5 AddEncoding gzip .gz RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond

Re: [us...@httpd] Pre compressed css and javascript

2010-10-04 Thread Ben Short
at 10:07 AM, Ben Short b...@benshort.co.uk wrote: Hi Eric, I have the DocumentRoot in my vhost. Sorry I omitted some of the configuration. I meant on the RewriteCond itself.  REQUEST_FILENAME is just the URI unless your rules are in directory or .htaccess, because the request has not been

Re: [us...@httpd] Pre compressed css and javascript

2010-10-04 Thread Ben Short
: RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.gz -f But.. what about Options +MultiViews? http://httpd.apache.org/docs/current/content-negotiation.html ? works. Thank you Ben On 4 October 2010 15:26, Eric Covener cove...@gmail.com wrote: On Mon, Oct 4, 2010 at 10:07 AM, Ben Short b

[us...@httpd] Rewrite altering path

2010-09-30 Thread Ben Short
not be redirected and the request will then be handled by mod_jk which I have working. Can anyone help me? Kind Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http

[us...@httpd] Re: Rewrite altering path

2010-09-30 Thread Ben Short
/apache2/docs/www.mydomain.co.uk/path and it displays when I request www.mydomain.co.uk When I add in JKMount /* web4 and make the request I get the response from the index.jsp which is in the root of the webapp. Any ideas? Ben On 30 September 2010 12:18, Ben Short b...@benshort.co.uk wrote

[us...@httpd] Re: Rewrite altering path

2010-09-30 Thread Ben Short
Fixed. I needed to add the PT flag to the redirect. On 30 September 2010 14:06, Ben Short b...@benshort.co.uk wrote: Hi, So far I have the following configuration in a vhost VirtualHost *:80 ServerAdmin ben.sh...@nexusalpha.com DocumentRoot /usr/local/apache2/docs/www.mydomain.co.uk

[EMAIL PROTECTED] Limit number of prefork worksers a virtual host can use

2007-08-03 Thread ben short
Hi, I'm using httpd 2.2.4 and have two virtual hosts. Is it possible to assign half of the available workers to each virtual host? Regards Ben Short - The official User-To-User support forum of the Apache HTTP Server Project