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 - -
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
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
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
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
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
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
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
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
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
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
:
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
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
/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
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
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
16 matches
Mail list logo