Skip to content

Instantly share code, notes, and snippets.

@SyNeto
Last active June 28, 2017 04:55
Show Gist options
  • Save SyNeto/c36fb51678784e6eb064ce27271ca3cc to your computer and use it in GitHub Desktop.
Save SyNeto/c36fb51678784e6eb064ce27271ca3cc to your computer and use it in GitHub Desktop.
Apache configuration file for django using Guinicorn UDS (Unix Domain Sockets) and static alias configuration.
<VirtualHost *:80>
ServerName domain.local
Alias /static /home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/www/static
<Directory /home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/www/static>
Require all granted
</Directory>
ProxyPass /static !
ProxyPass / unix:/home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/name.sock|http://domain.local/
ProxyPassReverse / unix:/home/syneto/Sites/proyecto_bs_pdf_service/bs_pdf_service/name.sock|http://domain.local/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment