better apache configuration
This commit is contained in:
parent
d34b2e4860
commit
6b50ce97a1
1 changed files with 10 additions and 7 deletions
|
@ -17,20 +17,23 @@
|
||||||
Order deny,allow
|
Order deny,allow
|
||||||
Allow from all
|
Allow from all
|
||||||
</Proxy>
|
</Proxy>
|
||||||
|
ProxyPass /static !
|
||||||
|
ProxyPass /favicon.ico !
|
||||||
|
ProxyPass /robots.txt !
|
||||||
|
ProxyPass /admin/media !
|
||||||
|
ProxyPass /data !
|
||||||
|
ProxyPass /.bzr !
|
||||||
|
|
||||||
|
|
||||||
Alias /.bzr __PREFIX__/.bzr
|
Alias /.bzr __PREFIX__/.bzr
|
||||||
Alias /static __PREFIX__/static
|
Alias /static __PREFIX__/static
|
||||||
Alias /favicon.ico __PREFIX__/static/favicon.ico
|
Alias /favicon.ico __PREFIX__/static/favicon.ico
|
||||||
Alias /data __PREFIX__/data
|
Alias /data __PREFIX__/data
|
||||||
Alias /admin/media __PREFIX__/src/django/django/contrib/admin/media
|
Alias /admin/media __PREFIX__/src/django/django/contrib/admin/media
|
||||||
Alias /static/js/jquery.js __PREFIX__/src/django/django/contrib/admin/media/js/jquery.min.js
|
|
||||||
|
|
||||||
RewriteEngine on
|
ProxyPreserveHost On
|
||||||
RewriteCond %{REQUEST_URI} !^/.bzr
|
ProxyPass / http://127.0.0.1:2620/
|
||||||
RewriteCond %{REQUEST_URI} !^/static
|
ProxyPassReverse / http://127.0.0.1:2620/
|
||||||
RewriteCond %{REQUEST_URI} !^/data
|
|
||||||
RewriteCond %{REQUEST_URI} !^/admin/media
|
|
||||||
RewriteRule ^/(.*) http://127.0.0.1:2620/$1 [P]
|
|
||||||
|
|
||||||
ServerSignature Off
|
ServerSignature Off
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
Loading…
Reference in a new issue