-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcaps.catfeed.net.conf
79 lines (60 loc) · 2.23 KB
/
caps.catfeed.net.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<VirtualHost *:80>
AddDefaultCharset UTF-8
ServerAdmin [email protected]
ServerName caps.catfeed.net
ServerAlias www.caps.catfeed.net
DocumentRoot /var/www/caps/css
RewriteEngine on
#ExpiresActive On
#ExpiresDefault "access plus 1 day"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
ErrorLog /var/log/httpd/caps.catfeed.net.error.log
LogLevel warn
CustomLog /var/log/httpd/caps.catfeed.net.access.log combined
RewriteEngine On
RewriteRule ^/([0-9]+)/?$ /$1/10/ [N]
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteRule ^/([0-9/]*)$ /se/$1 [R]
RewriteCond %{QUERY_STRING} _escaped_fragment_
RewriteRule ^/items/([0-9/]*)$ /se/items/$1 [R]
RewriteCond %{HTTP_USER_AGENT} (Twitterbot|facebookexternal)
RewriteRule ^/([0-9/]*)$ /se/$1 [R]
RewriteCond %{HTTP_USER_AGENT} (Twitterbot|facebookexternal)
RewriteRule ^/items/([0-9/]*)$ /se/items/$1 [R]
AliasMatch ^/([0-9]+.*)$ /var/www/caps/caps.html
AliasMatch ^/caps/$ /var/www/caps/caps.html
AliasMatch ^/items /var/www/caps/caps.html
AliasMatch ^/$ /var/www/caps/caps.html
Alias /caps.list.html /var/www/caps/caps.list.html
Alias /humans.txt /var/www/caps/caps.humans.txt
Alias /favicon.ico /var/www/caps/caps.ico
Alias /caps/css /var/www/caps/css
Alias /js /var/www/caps/js
WSGIDaemonProcess caps user=apache group=apache threads=5
WSGIScriptAlias /data/ /var/www/caps/caps.wsgi/
WSGIScriptAlias /vote /var/www/caps/caps.wsgi/vote
WSGIScriptAlias /se/ /var/www/caps/caps.wsgi/se/
<Directory /var/www/caps/js>
Options -Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<Directory /var/www/caps/css>
Options -Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<Directory /var/www/caps>
Options ExecCGI
AddHandler wsgi-script .wsgi
WSGIProcessGroup caps
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>