[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 - - [11/May/2011:08:

[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 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 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 wrote: > I got it all working. My configuration is shown below. Thanks for the help. > > >        ServerAdmin ben.sh...@ne

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. ServerAdmin ben.sh...@nexusalpha.com DocumentRoot "/usr/local/apache2/docs/www.journeycheck.southwesttrains.co.uk/" ServerName www.journeycheck.southwesttrains.co.uk RewriteEngine On

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 wrote: > Hi Craig, > > Some background... > > As part of the build process my web application minimizes and gzips > all the style sheets an

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 main-min

[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 http://httpd.apache.org/userslist.html

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

2010-10-04 Thread Ben Short
;> >> Thank you >> >> Ben >> >> On 4 October 2010 15:26, Eric Covener wrote: >> > On Mon, Oct 4, 2010 at 10:07 AM, Ben Short >> wrote: >> >> Hi Eric, >> >> >> >> I have the DocumentRoot in my vhost. Sorry I omitted

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

2010-10-04 Thread Ben Short
Eric, Ah I see what you mean changing RewriteCond %{REQUEST_FILENAME}.gz -f to RewriteCond /usr/local/apache2/docs/www.journeycheck.southwesttrains.co.uk/%{REQUEST_FILENAME}.gz -f works. Thank you Ben On 4 October 2010 15:26, Eric Covener wrote: > On Mon, Oct 4, 2010 at 10:07 AM,

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 wrote: >> RewriteCond %{REQUEST_FILENAME}.gz -f > > in vhost context, you have to add the document root in yourself, since > the request hasn't actually been mapp

[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 %{HTTP_US

[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 wrote: > Hi, > > So far I have the following configuration in a vhost > > > > ServerAdmin ben.sh...@nexusalpha.com > DocumentRoot "/usr/local/apache2/docs/www.

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

2010-09-30 Thread Ben Short
hen 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 wrote: > Hi, > > I need to alter the path of my incoming requests for example > > www.mydo

[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 http

[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 Pr