Skip to content

Instantly share code, notes, and snippets.

@simonw
Created October 13, 2010 22:59
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save simonw/625129 to your computer and use it in GitHub Desktop.
# Apache conf (/etc/apache2/apache2.conf)
#
# Based on http://github.com/jacobian/django-deployment-workshop/
# blob/master/apache/apache2.conf by Jacob Kaplan-Moss
# Basic server setup
#
ServerRoot "/etc/apache2"
PidFile ${APACHE_PID_FILE}
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
ServerTokens ProductOnly
ServerAdmin apache@lanyrd.com
# Standalone server.
Listen *:8000
KeepAlive Off
LoadModule mime_module /usr/lib/apache2/modules/mod_mime.so
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so
LogFormat "%%h %%l %%u %%t \"%%r\" %%>s %%b \"%%{Referer}i\" \"%%{User-agent}i\"" combined
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
#
# Default HTTP features
#
AddDefaultCharset utf-8
DefaultType text/plain
TypesConfig /etc/mime.types
#
# Basic document root and directory perms.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DocumentRoot "/var/www"
#
# And finally the app config.
#
WSGIScriptAlias / "/srv/django-apps/lanyrd.com/current/lanyrd/configs/live/app.wsgi"
@adamv
Copy link

adamv commented Oct 13, 2010

Pretty minimal; that's the entire conf for the app server?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment