Last active
June 28, 2017 04:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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