After more investigation the previous configuration did not actually
work correctly. The following does.
AddEncoding gzip .jgz
AddType application/javascript .jgz
AddEncoding gzip .cgz
AddType text/css .cgz
RewriteCond %{REQUEST_URI} ^(.*).js$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond
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
> But.. what about Options +MultiViews?
> http://httpd.apache.org/docs/current/content-negotiation.html
FWIW I think you need the "MutlViewsMatch any" and make sure your
requests are all for "foo" and not "foo.js", otherwise it doesn't kick
in (from my recollection).
-
Joost,
That also works for me. Thank you
2010/10/4 Igor Galić :
>
>> 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
>
>
> First off:
>
> 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
First off:
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.gz -f
But.. what about Optio
On 10/04/2010 03:55 PM, 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 mapped to a file yet.
If I understand the docs correctly, this can also be fixed with
%{LA-U:REQUEST_FILEN
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, Ben Shor
On Mon, Oct 4, 2010 at 10:07 AM, Ben Short 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 or .htaccess, because the request
has not been mapped
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
> RewriteCond %{REQUEST_FILENAME}.gz -f
in vhost context, you have to add the document root in yourself, since
the request hasn't actually been mapped to a file yet.
-
The official User-To-User support forum of the Apache HTTP Se
10 matches
Mail list logo