Skip to content

Instantly share code, notes, and snippets.

@gnoliyil
Created March 31, 2017 05:38
Show Gist options
  • Select an option

  • Save gnoliyil/e2d031c6a1df8eca1642dd9f3a85fb0d to your computer and use it in GitHub Desktop.

Select an option

Save gnoliyil/e2d031c6a1df8eca1642dd9f3a85fb0d to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
# DocumentRoot /var/www/html
WSGIDaemonProcess workshop user=gnoliyil threads=5 home=/var/www/custipen-website
WSGIScriptAlias /workshop/huzhou2017 /var/www/custipen-website/workshop.wsgi
<Directory /var/www/custipen-website>
WSGIProcessGroup workshop
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
</Directory>
<Directory /var/www/custipen-website/workshop>
WSGIProcessGroup workshop
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
</Directory>
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment