149 | | ServerName harvey.silverfilecorp.com |
150 | | SetHandler python-program |
151 | | PythonHandler django.core.handlers.modpython |
152 | | SetEnv DJANGO_SETTINGS_MODULE files.settings |
153 | | PythonOption django.root /files |
154 | | PythonDebug On |
155 | | PythonPath "['/usr/wwwapps/sf-app'] + sys.path" |
156 | | |
157 | | # Site media files - css, js, img |
158 | | Alias /site_media /usr/wwwapps/sf-app/files/media |
159 | | <Location /site_media/> |
160 | | SetHandler None |
161 | | </Location> |
162 | | |
163 | | # Client Files |
164 | | Alias /site_files /FILES |
165 | | <Location /site_files/> |
166 | | SetHandler None |
167 | | </Location> |
168 | | |
| 150 | # Edit here: |
| 151 | # ServerName sfxxx.silverfilecorp.com |
| 152 | ServerName 127.0.0.1 |
| 153 | # ServerAlias 127.0.0.1 |
| 154 | |
| 155 | ErrorLog "/usr/wwwapps/logs/silverfile.error" |
| 156 | CustomLog "/usr/wwwapps/logs/silverfile.access" common |
| 157 | |
| 158 | # Edit Here: |
| 159 | # SSLEngine on |
| 160 | # SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire |
| 161 | |
| 162 | # SSLCertificateFile /etc/ssl/certs/docs.silverfilecorp.com.crt |
| 163 | # SSLCertificateKeyFile /etc/ssl/private/docs.silverfilecorp.com.key |
| 164 | |
| 165 | # Django app |
| 166 | <Location /> |
| 167 | SetHandler python-program |
| 168 | PythonHandler django.core.handlers.modpython |
| 169 | SetEnv DJANGO_SETTINGS_MODULE production.settings |
| 170 | PythonPath "['/usr/wwwapps/sf-app'] + sys.path" |
| 171 | PythonOption django.root |
| 172 | PythonDebug On |
| 173 | </Location> |
| 174 | |
| 175 | # Site media files - css, js, img |
| 176 | Alias /site_media /usr/wwwapps/sf-app/production/media |
| 177 | <Location /site_media/> |
| 178 | SetHandler none |
| 179 | allow from all |
| 180 | </Location> |
| 181 | |
| 182 | # Admin media files - css, js, img |
| 183 | Alias /media /var/lib/python-support/python2.5/django/contrib/admin/media |
| 184 | <Location /media/> |
| 185 | SetHandler none |
| 186 | allow from all |
| 187 | </Location> |
| 188 | |
| 189 | # Client Files |
| 190 | Alias /docs /FILES |
| 191 | <Location /docs/> |
| 192 | SetEnv DJANGO_SETTINGS_MODULE production.settings |
| 193 | PythonOption DJANGO_SETTINGS_MODULE production.settings |
| 194 | PythonPath "['/usr/wwwapps/sf-app'] + sys.path" |
| 195 | PythonAccessHandler files.common.modpython |
| 196 | PythonDebug On |
| 197 | |
| 198 | SetHandler none |
| 199 | allow from all |
| 200 | </Location> |