summaryrefslogtreecommitdiff
path: root/apache2/sites-available/php.example.com
blob: 259d5f1f5603ffbf3ebaeab3583a2de826dea067 (plain)
  1. <VirtualHost *:80>
  2. ServerName php.example.com
  3. ServerAdmin webmaster@example.com
  4. DocumentRoot /var/www-php-app/foo
  5. <Location />
  6. DirectoryIndex index.php
  7. SetHandler uwsgi-handler
  8. uWSGISocket /run/uwsgi/app/local-php-app/socket
  9. uWSGImodifier1 9
  10. </Location>
  11. ErrorLog ${APACHE_LOG_DIR}/www.example.com-error.log
  12. CustomLog ${APACHE_LOG_DIR}/www.example.com-access.log combined
  13. </VirtualHost>
  14. <VirtualHost *:80>
  15. ServerName www.php.example.com
  16. ServerAlias *.php.example.com
  17. Include conf.d/local-log-origin.conf
  18. RedirectMatch permanent .* http://php.example.com/
  19. ErrorLog ${APACHE_LOG_DIR}/django.example.com-error.log
  20. CustomLog ${APACHE_LOG_DIR}/django.example.com-access.log origin
  21. </VirtualHost>