-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fdavis
committed
Jun 22, 2013
1 parent
a8e5e7b
commit 077d2ed
Showing
3 changed files
with
42 additions
and
22 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,32 @@ | ||
<VirtualHost *:80> | ||
ServerAdmin webmaster@localhost | ||
DocumentRoot /var/www | ||
<Location "/"> | ||
SetHandler python-program | ||
PythonHandler django.core.handlers.modpython | ||
SetEnv DJANGO_SETTINGS_MODULE mysite.settings | ||
PythonDebug Off | ||
</Location> | ||
# nginx.conf | ||
upstream django { | ||
# connect to this socket | ||
# server unix:///tmp/uwsgi.sock; # for a file socket | ||
server 127.0.0.1:8001; # for a web port socket | ||
} | ||
|
||
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 | ||
server { | ||
# the port your site will be served on | ||
listen 80; | ||
# the domain name it will serve for | ||
server_name localhost; # substitute your machine's IP address or FQDN | ||
charset utf-8; | ||
|
||
</VirtualHost> | ||
#Max upload size | ||
client_max_body_size 75M; # adjust to taste | ||
|
||
# Django media | ||
#location /media { | ||
# alias /path/to/your/project/project/media; # your Django project's media files | ||
#} | ||
|
||
#location /static { | ||
# alias /path/to/your/project/project/static; # your Django project's static files | ||
#} | ||
|
||
# Finally, send all non-media requests to the Django server. | ||
location / { | ||
uwsgi_pass django; | ||
include /etc/nginx/uwsgi_params; # or the uwsgi_params you installed manually | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters