Skip to content

Instantly share code, notes, and snippets.

Last active July 28, 2017 20:13
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Installing Netbox (in a virtualenv) with Apache and uwsgi on Debian
apt-get install apache2 libapache2-mod-proxy-uwsgi uwsgi uwsgi-plugin-python3
project = netbox
plugins = python34
# If want to use netbox in a virtualenv set its path here.
#virtualenv = /opt/virtualenvs/netbox
base = /opt/netbox/
chdir = %(base)/%(project)
module = %(project).wsgi:application
socket =
master = True
processes = 4
<VirtualHost *:80>
DocumentRoot /srv/http/
<Directory /srv/http/>
Require all granted
Options FollowSymLinks
AllowOverride All
ProxyPass /static !
ProxyPass / uwsgi://
Alias /static /opt/netbox/netbox/static
<Directory /opt/netbox/netbox/static>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment