Skip to content
Siqi Tian edited this page Feb 5, 2017 · 5 revisions
  • Install mod_wsgi and mod_xsendfile by sudo apt-get install libapache2-mod-wsgi libapache2-mod-xsendfile.
  • Have the following modules enabled (exactly): access_compat, alias, auth_basic, authn_core, authn_file, authz_core, authz_groupfile, authz_host, authz_user, deflate, expires, filter, headers, http2, mime, mpm_worker, negotiation, reqtimeout, setenvif, socache_shmcb, ssl, status, wsgi, xsendfile.
  • Edit configuration files. It's recommend to recover and overwrite from the backup/backup_apache.tgz. These files are important: apache.conf, deflate.conf, httpd.conf, ports.conf, sites-enabled/000-default.conf.
File Description
httpd.conf Defines worker numbers, /server-status/ page access, Expires header, and error handling pages. Do not use prefork with mod_wsgi!
sites-enabled/000-default.conf Sets SSL, non-HTTPS redirects, xsendfile path for /tools/download/package/release/, wsgi app path, directory permissions, and /favicon.ico redirect. Additionally, it handles requests from primerize2d.stanford.edu and redirect all to primerize.stanford.edu/primerize2d/, which is a landing page for paper reviewers.
password Stores Apache user logins. Currently only daslab.

Apache related system path:

Item Path
configuration /etc/apache2/
log var/log/apache2/
Clone this wiki locally