Skip to content

Instantly share code, notes, and snippets.

@gabrielhpugliese
Created July 30, 2012 20:05
Show Gist options
  • Save gabrielhpugliese/3209722 to your computer and use it in GitHub Desktop.
Save gabrielhpugliese/3209722 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName server_name
ServerAdmin administrador@ehnoiz.com.br
AssignUserID user_name user_name
#DocumentRoot "/home/user_name/site_env/web_app/user_name/public/"
#<Directory />
# Options FollowSymLinks
# AllowOverride None
#</Directory>
<Directory /home/user_name/site_env/public_html>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /home/user_name/site_env/cgi-bin
<Directory "/home/user_name/site_env/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
Alias /static "/home/user_name/site_env/public_html/"
<Directory "/home/user_name/site_env/public_html/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Alias /uploads "/home/user_name/site_env/web_app/current/user_name/uploads/"
<Directory "/home/user_name/site_env/web_app/current/user_name/uploads/">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias / /home/user_name/site_env/web_app/current/user_name/django.wsgi
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog "||/usr/sbin/rotatelogs /home/user_name/site_env/logs/access_log 86400" common
ErrorLog "||/usr/sbin/rotatelogs /home/user_name/site_env/logs/error_log 86400"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment