File: apache2-alias.conf

package info (click to toggle)
courier 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,444 kB
  • sloc: ansic: 130,619; cpp: 33,255; sh: 10,437; perl: 4,250; makefile: 3,447; sed: 39
file content (33 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download
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
# This example config loads SqWebMail at https://www.example.com/cgi-bin/sqwebmail.
# It requires that mod_cgi or mod_cgid be enabled.
<VirtualHost *:443>
    # Specify the Server Name.
    ServerName www.example.com

    # Enable SSL.
    SSLEngine               on
    SSLCertificateFile      /path/to/fullchain.pem
    SSLCertificateKeyFile   /path/to/privkey.pem

    # Set the script alias.  This isn't needed if you have enabled Debian's
    # default /etc/apache2/conf-available/serve-cgi-bin.conf.
    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

    # Set the cgi-bin directory permissions.  This isn't needed if you have
    # enabled Debian's default /etc/apache2/conf-available/serve-cgi-bin.conf.
    <Directory "/usr/lib/cgi-bin">
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        AllowOverride None
        Require all granted
    </Directory>

    # Set the sqwebmail alias, which is used to load CSS and other assets.
    Alias /sqwebmail/ /usr/share/sqwebmail/

    # Set the sqwebmail directory permissions.
    <Directory /usr/share/sqwebmail/>
        Options None
        Require all granted
        AllowOverride None
    </Directory>
</VirtualHost>