diff options
author | Mark Longair <mhl@pobox.com> | 2012-09-27 21:06:10 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2012-09-27 21:07:30 +0100 |
commit | faae328530ec403eb864a96cc1b0af734dc82f19 (patch) | |
tree | 9c2b763997c1d705a8f530e1cc6def301ee438f3 /conf/apache-vhost.conf.example | |
parent | 312c3b14fd1683973baca6dcf6b4f95e888064ab (diff) |
Switch install script to use nginx
This commit also reorganizes the files in conf/
Diffstat (limited to 'conf/apache-vhost.conf.example')
-rw-r--r-- | conf/apache-vhost.conf.example | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/conf/apache-vhost.conf.example b/conf/apache-vhost.conf.example new file mode 100644 index 000000000..de53a5b6c --- /dev/null +++ b/conf/apache-vhost.conf.example @@ -0,0 +1,36 @@ +# An example Apache virtualhost configuration file. + +# Copyright (c) 2011 UK Citizens Online Democracy. All rights reserved. +# Email: team@mysociety.org +# WWW: http://www.mysociety.org + +<VirtualHost *:80> + ServerName fixmystreet.yourservername + DocumentRoot /home/yourname/fixmystreet/web/ + + # Pull in the specific config + Include /home/yourname/fixmystreet/conf/httpd.conf + + <Directory /home/yourname/fixmystreet/web> + # You also need to enable cgi files to run as CGI scripts. For example: + # on production servers these are run under fastcgi + Options +ExecCGI + AddHandler cgi-script .cgi + AllowOverride None + </Directory> + + <Location /admin> + # + # WARNING - enable auth here on production machine + # + </Location> + + Alias /admin/ /home/yourname/fixmystreet/web-admin/ + + Alias /jslib/ /home/yourname/fixmystreet/commonlib/jslib/ + <Location /jslib> + AddOutputFilter DEFLATE js + Header append Cache-Control "no-transform" + </Location> + +</VirtualHost> |