Listen your_ip_address:80 ServerAdmin you@yourdomain ServerRoot "/opt/local" ServerTokens ProductOnly User www Group www Timeout 300 KeepAlive Off MaxClients 5 MaxRequestsPerChild 100 AddDefaultCharset utf-8 PidFile /opt/local/var/run/httpd.pid ServerName your_ip_address:80 DocumentRoot "/opt/local/share/httpd/htdocs" ErrorLog /opt/local/var/log/httpd/error_log LogLevel warn DefaultType text/plain LoadModule python_module /opt/local/lib/httpd/mod_python.so Options None AllowOverride None CustomLog /opt/local/var/log/httpd/your_site.log "\"%{X-Forwarded-For}i\" %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" SetHandler python-program PythonPath "['/home/code'] + sys.path" PythonHandler django.core.handlers.modpython PythonDebug Off PythonAutoReload Off SetEnv DJANGO_SETTINGS_MODULE your_project.settings