-
Notifications
You must be signed in to change notification settings - Fork 4
/
apache.conf
54 lines (53 loc) · 2.57 KB
/
apache.conf
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
################################################################
# start of of stmgrts.org.uk site listing
#
# stmgrts.org.uk site on port 80 for http
#
#NameVirtualHost stmargarets.london:80
<VirtualHost *:80>
ServerName stmargarets.local
ServerAdmin [email protected]
DocumentRoot /home/stmargarets/html
ScriptAlias /cgi-bin/ /home/stmargarets/cgi-bin/
ErrorLog /home/stmargarets/logs/error_log
CustomLog /home/stmargarets/logs/access_log combined
Options +FollowSymLinks
AddHandler cgi-script .cgi .pl
<Location />
Options ALL +Indexes +FollowSymLinks +ExecCGI +Includes
Require all granted
RewriteEngine on
RewriteRule html/event/(.*)/([0-9]+)$ /cgi-bin/events.cgi?action=getevent&type=$1&key=$2 [L,NE]
RewriteRule html/event/(.*)$ /cgi-bin/events.cgi?action=filter&type=$1 [L,NE]
RewriteRule html/event/(.*)/$ /cgi-bin/events.cgi?action=filter&type=$1 [L,NE]
RewriteRule html/event/$ /cgi-bin/events.cgi [L]
RewriteRule html/event$ /cgi-bin/events.cgi [L]
RewriteRule html/events$ /cgi-bin/events.cgi [L]
RewriteRule html/forum/$ /cgi-bin/forum.cgi [L]
RewriteRule html/forum$ /cgi-bin/forum.cgi [L]
RewriteRule html/forum.cgi$ /cgi-bin/forum.cgi [L]
RewriteRule html/directory/(.*)/([0-9]+)$ /cgi-bin/directory.cgi?action=getlisting&category=$1&key=$2 [L,NE]
RewriteRule html/directory/(.*)$ /cgi-bin/directory.cgi?action=filter&category=$1 [L,NE]
RewriteRule html/directory/(.*)/$ /cgi-bin/directory.cgi?action=filter&category=$1 [L,NE]
RewriteRule html/directory/$ /cgi-bin/directory.cgi [L]
RewriteRule html/directory$ /cgi-bin/directory.cgi [L]
RewriteRule html/poll/(.*)/(.*)$ /cgi-bin/poll.cgi?pollname=$1&action=$2 [L,NE]
RewriteRule html/poll/(.*)/(.*)/$ /cgi-bin/poll.cgi?pollname=$1&action=$2 [L,NE]
RewriteRule html/poll/(.*)$ /cgi-bin/poll.cgi?pollname=$1 [L,NE]
RewriteRule html/poll/(.*)/$ /cgi-bin/poll.cgi?pollname=$1&action=$2 [L,NE]
RewriteRule html/poll/$ /cgi-bin/poll.cgi [L]
RewriteRule html/poll$ /cgi-bin/poll.cgi [L]
RewriteRule html/images/(.*)$ /assets/images/$1 [L]
RewriteRule archives/around_town(.*)$ /archives/around-town$1 [L]
RewriteRule html/l/scripts/(.*)$ "http://stmgrts.org.uk/scripts/$1" [R]
</Location>
<Location /cgi-bin/>
Options +ExecCGI -MultiViews +FollowSymlinks
Allow from all
Order allow,deny
Require all granted
</Location>
</VirtualHost>
#
# end of stmgrts.org.uk site listing
################################################################