aboutsummaryrefslogtreecommitdiffstats
path: root/conf/apache-vhost.conf.example
blob: b4a3e78f00edd6f8825150400ed4efd18a00a4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# An example Apache virtualhost configuration file.
#
# See our installation help at http://fixmystreet.org/
#
# Hopefully you can use either mod_fastcgi or mod_fcgid.
# Ubuntu has mod_fcgid by default, with mod_fastcgi in multiverse.
# Debian has both.

<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:
        Options +ExecCGI

        AddHandler your-handler .cgi
        # mod_fastcgi: AddHandler fastcgi-script .cgi
        # mod_fcgid: AddHandler fcgid-script .cgi
        # CGI: AddHandler cgi-script .cgi

        AllowOverride None
    </Directory>

    Alias /jslib/ /home/yourname/fixmystreet/commonlib/jslib/
    <Location /jslib>
        AddOutputFilter DEFLATE js
        Header append Cache-Control "no-transform"
    </Location>

</VirtualHost>