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:
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.
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
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
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
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
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
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
;>
>> 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
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,
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
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
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.
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
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
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
16 matches
Mail list logo