Initial fix for apache 2.4 vhost file

This commit is contained in:
Duncan Sommerville 2015-01-20 17:31:59 -05:00
parent b58891f1fa
commit 7034c8e00d
3 changed files with 25 additions and 3 deletions

View file

@ -13,7 +13,5 @@
# Apache instance is behind a proxy, so set these here
UseCanonicalName On
UseCanonicalPhysicalPort On
Require all granted
</Directory>
</VirtualHost>

View file

@ -0,0 +1,19 @@
<VirtualHost *:80>
ServerAdmin foo@bar.org
DocumentRoot WEB_ROOT
php_admin_value upload_tmp_dir /tmp
<Directory WEB_ROOT>
DirectoryIndex index.php
AllowOverride all
Order allow,deny
Allow from all
# PHP's server values can be spoofed or incorrect if an
# Apache instance is behind a proxy, so set these here
UseCanonicalName On
UseCanonicalPhysicalPort On
Require all granted
</Directory>
</VirtualHost>