ServerName php.example.com ServerAdmin webmaster@example.com DocumentRoot /var/www-php-app/foo DirectoryIndex index.php SetHandler uwsgi-handler uWSGISocket /run/uwsgi/app/local-php-app/socket uWSGImodifier1 9 ErrorLog ${APACHE_LOG_DIR}/www.example.com-error.log CustomLog ${APACHE_LOG_DIR}/www.example.com-access.log combined ServerName www.php.example.com ServerAlias *.php.example.com RedirectMatch permanent .* http://php.example.com/ CustomLog ${APACHE_LOG_DIR}/redirect.log vhost_combined