Skip to content

Instantly share code, notes, and snippets.

@kmkmjhyiiiu
Created December 1, 2020 09:01
Show Gist options
  • Save kmkmjhyiiiu/aa68425b617354e00d6fdff9d239b13f to your computer and use it in GitHub Desktop.
Save kmkmjhyiiiu/aa68425b617354e00d6fdff9d239b13f to your computer and use it in GitHub Desktop.
django proxy pass apache conf
<VirtualHost *:80>
ServerAdmin admin@productdemo.biz
ServerName lms.productdemo.biz
ServerAlias www.lms.productdemo.biz
#DocumentRoot /var/www/html/lms
ProxyPass / http://0.0.0.0:8000/
ProxyPassReverse / http://0.0.0.0:8000
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
@kmkmjhyiiiu
Copy link
Author

Enabling proxy mode for apache

run these and then copy and paste :P

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests

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