summaryrefslogtreecommitdiff
path: root/apache2/sites-available/php.example.com.conf
blob: 6998129460d54cbe8f82295be078307efaf20288 (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. RedirectMatch permanent .* http://php.example.com/
  18. CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined
  19. </VirtualHost>