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

2010-10-08 Thread Ben Short
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

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] Pre compressed css and javascript

2010-10-04 Thread Eric Covener
> 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). -

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

2010-10-04 Thread Ben Short
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: >

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

2010-10-04 Thread 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: RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.gz -f But.. what about Optio

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

2010-10-04 Thread Joost de Heer
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

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, Ben Shor

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

2010-10-04 Thread Eric Covener
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

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

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

2010-10-04 Thread Eric Covener
> 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