Skip to content

Commit 92f5944

Browse files
committed
Adding configuration files from the /etc/ filesystem, as they are used in production
- Legacy-Id: 891
1 parent f15e6e7 commit 92f5944

3 files changed

Lines changed: 137 additions & 1 deletion

File tree

etc/httpd/conf.d/django.conf

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
SetEnv PYTHON_EGG_CACHE /tmp/.python-eggs
2+
#Listen 8000
3+
#NameVirtualHost 10.91.34.42:8000
4+
<VirtualHost 156.154.19.184:80>
5+
ServerName ietfdev.neustarlab.biz
6+
ServerAlias ietfdev.neustarlab.biz
7+
8+
9+
#ServerName datatracker.ietf.org
10+
DocumentRoot "/var/www/django_ietf/web/static/"
11+
ErrorLog /var/log/ietf/tracker-error_log
12+
TransferLog /var/log/ietf/tracker-access_log
13+
14+
<Location "/">
15+
PythonPath "['/var/www/django_ietf/web'] + sys.path"
16+
SetHandler python-program
17+
PythonHandler django.core.handlers.modpython
18+
SetEnv DJANGO_SETTINGS_MODULE ietf.settings
19+
PythonDebug On
20+
</Location>
21+
22+
<LocationMatch "/(robots.txt|favicon.ico|images|css|js|media)">
23+
SetHandler None
24+
</LocationMatch>
25+
26+
27+
<Location "/cgi-bin">
28+
SetHandler cgi-script
29+
</Location>
30+
31+
<Location "/documents">
32+
SetHandler None
33+
</Location>
34+
35+
Alias /documents/ "/home/datatracker/htdocs-datatracker/documents/"
36+
37+
<Location "/proceedings">
38+
SetHandler None
39+
</Location>
40+
41+
Alias /proceedings/ "/home/datatracker/htdocs-datatracker/proceedings/"
42+
43+
44+
45+
ScriptAlias /idst/ "/home/mlee/IETF/idst/"
46+
ScriptAlias /idst-pub/ "/home/mlee/IETF/idst-pub/"
47+
48+
<Location "/idst">
49+
SetHandler cgi-script
50+
</Location>
51+
52+
<Location "/idst-pub">
53+
SetHandler cgi-script
54+
</Location>
55+
56+
57+
#RedirectMatch ^/$ http://datatracker.ietf.org/idtracker/
58+
59+
ScriptAlias "/cgi-bin/" "/home/datatracker/cgi-bin-datatracker/"
60+
ScriptAlias "/private/" "/home/datatracker/cgi-bin-datatracker/"
61+
62+
<Directory "/home/datatracker/cgi-bin-datatracker">
63+
AllowOverride All
64+
Options None
65+
Order allow,deny
66+
Allow from all
67+
</Directory>
68+
ScriptAlias "/devel/" "/home/datatracker/cgi-bin-datatracker/devel/"
69+
<Directory "/home/datatracker/cgi-bin-datatracker/devel">
70+
AllowOverride All
71+
Options None
72+
Order allow,deny
73+
Allow from all
74+
</Directory>
75+
76+
ScriptAlias /public/ "/home/datatracker/cgi-bin-datatracker-pub/"
77+
<Directory "/home/datatracker/cgi-bin-datatracker-pub">
78+
AllowOverride All
79+
Options None
80+
Order allow,deny
81+
Allow from all
82+
</Directory>
83+
84+
#ScriptAlias /idst/ "/home/mlee/IETF/idst/"
85+
#ScriptAlias /idst-pub/ "/home/mlee/IETF/idst-pub/"
86+
87+
<Location "/idst">
88+
SetHandler cgi-script
89+
</Location>
90+
91+
<Location "/idst-pub">
92+
SetHandler cgi-script
93+
</Location>
94+
95+
Redirect permanent /public/idst/upload.cgi https://datatracker.ietf.org/idst/upload.cgi
96+
Redirect permanent /public/idst/status.cgi https://datatracker.ietf.org/idst/status.cgi
97+
Redirect permanent /public/request_password.cgi https://datatracker.ietf.org/idst-pub/request_password.cgi
98+
Redirect permanent /public/reset_password.cgi https://datatracker.ietf.org/idst-pub/reset_password.cgi
99+
Redirect permanent /public/auto_post.cgi https://datatracker.ietf.org/idst-pub/auto_post.cgi
100+
101+
102+
103+
104+
</VirtualHost>

etc/syslog.conf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Log all kernel messages to the console.
2+
# Logging much else clutters up the screen.
3+
#kern.* /dev/console
4+
5+
# Log anything (except mail) of level info or higher.
6+
# Don't log private authentication messages!
7+
*.info;mail.none;authpriv.none;cron.none /var/log/messages
8+
9+
# The authpriv file has restricted access.
10+
authpriv.* /var/log/secure
11+
12+
# Log all the mail messages in one place.
13+
mail.* -/var/log/maillog
14+
15+
16+
# Log cron stuff
17+
cron.* /var/log/cron
18+
19+
# Everybody gets emergency messages
20+
*.emerg *
21+
22+
# Save news errors of level crit and higher in a special file.
23+
uucp,news.crit /var/log/spooler
24+
25+
# Save boot messages also to boot.log
26+
local7.* /var/log/boot.log
27+
28+
29+
30+
#Django specific
31+
32+
local0.* /var/log/ietf/django.log

ietf/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import os
88

99
import syslog
10-
syslog.openlog("django", syslog.LOG_PID, syslog.LOG_USER)
10+
syslog.openlog("django", syslog.LOG_PID, syslog.LOG_LOCAL0)
1111

1212

1313
BASE_DIR = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)