-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathofawesome_apache_conf
99 lines (80 loc) · 3.26 KB
/
ofawesome_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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.ofawesome.se
DocumentRoot /var/www/ofawesome
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/ofawesome>
RewriteEngine on
RewriteBase /
# If empty subdomain, replace with "www"
RewriteCond %{HTTP_HOST} ^ofawesome\.se$
RewriteRule ^(.*) http://www.ofawesome.se/$1 [QSA,L,R=301]
# If empty subdomain, replace with "www"
RewriteCond %{HTTP_HOST} ^www\.stockholmslackline\.ofawesome\.se$
RewriteRule ^(.*) http://stockholmslackline.ofawesome.se/$1 [QSA,L,R=301]
RewriteCond %{HTTP_HOST} !^www\.ofawesome\.se$
RewriteCond %{HTTP_HOST} ^(.*)\.ofawesome\.se$
RewriteRule (.*) http://www.ofawesome.se/%1/$1 [QSA,L,R=301]
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName stockholmslackline.ofawesome.se
DocumentRoot /var/www/stockholmslackline
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/stockholmslackline/>
RewriteEngine On
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(css|js|html|png)
RewriteRule (.*) index.html [L]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=$
RewriteRule ^$ /snapshots/home.html [L]
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=(.*)$
RewriteRule ^$ /snapshots/%1.html [L]
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://192.168.0.22:4567/
ServerName deploy.ofawesome.se
</VirtualHost>