This repository has been archived by the owner on Sep 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apache-siteconfig-example.conf
65 lines (52 loc) · 1.84 KB
/
apache-siteconfig-example.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
######################################################
### wedding.djwed
######################################################
<VirtualHost *>
ServerAdmin [email protected]
DocumentRoot /var/www/wedding/media
ScriptAlias /cgi-bin/ /var/www/wedding/cgi-bin/
ServerName wedding.example.org
ErrorLog logs/wedding/error.log
CustomLog logs/wedding/access.log full
Alias /robots.txt /var/www/wedding/media/robots.txt
Alias /favicon.ico /var/www/wedding/media/favicon.ico
Alias /apple-touch-icon.png /var/www/wedding/media/apple-touch-icon.png
Alias /apple-touch-icon-precomposed.png /var/www/wedding/media/apple-touch-icon.png
#AliasMatch /([^/]*\.css) /usr/local/wsgi/static/styles/$1
Alias /media/ /var/www/wedding/media/
Alias /admin/media/ /usr/share/pyshared/django/contrib/admin/media/
Alias /static/ /var/www/wedding/media/
WSGIScriptAlias / /var/www/wedding/djwed/django.wsgi
<Directory /var/www/wedding/djwed>
Order allow,deny
Allow from all
</Directory>
<Directory /usr/share/pyshared/django/contrib/admin/media/>
Order allow,deny
Allow from all
# Options FollowSymlinks
</Directory>
</VirtualHost>
<Directory /var/www/wedding/djwed>
Order allow,deny
Deny from all
</Directory>
<Directory /var/www/wedding/media>
Order deny,allow
Allow from all
Options FollowSymLinks
</Directory>
<Directory /var/www/wedding/cgi-bin>
Options +ExecCGI
AddType application/x-httpd-cgi .cgi
AddHandler cgi-script .cgi
</Directory>
<VirtualHost *>
ServerAdmin [email protected]
DocumentRoot /var/www/wedding/media
Redirect / http://wedding.example.org/
ServerName wedding.example.org
ServerAlias wedding.example.org wedding.example.com
ErrorLog logs/wedding/error.log
CustomLog logs/wedding/access.log full
</VirtualHost>