Bug#503069: Solution!?

2009-03-12 Thread ev45ive
I think i found a solution.
To tell apache that we wanna stay in current dir (www) instead to search in
filesystem just add /

Instead of RewriteRule ^(.*)$ $1.gz [QSA,L]
write :
RewriteRule ^(.*)$ /$1.gz [QSA,L]

Notice / before $1.gz !

Heres complete working example for js/css :

RewriteEngine On
AddType text/javascript .gz
AddType text/css .gz
AddEncoding gzip .gz

RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{HTTP_USER_AGENT} !Safari
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ /$1.gz [QSA,L]

Please reply someone if its solving the problem, or if there are any
complications.

-- 
Greetz,
Mateusz Kulesza.
---
mateusz [at] kulesza [dot] biz


Bug#511878: apache2-mpm-prefork: The httpd server runs inside an artificial LANG=C environment

2009-03-12 Thread Antti Kaihola
I hit the same bug when running a Python/Django site with mod_wsgi.
Django tried to os.stat() a unicode filepath with u'\xc4' in it and
failed. That's indeed what Python does when run with LANG=C.

My fix was to add 
ENV=env -i LANG=en_US.UTF-8 PATH=/usr/local/bin:/usr/bin:/bin
in /etc/default/apache2, but /etc/apache2/envvars sounds more
appropriate.



-- 
To UNSUBSCRIBE, email to debian-apache-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org