Upgraded a server from apache 2.2 to 2.4, it seems 2.4 requires an extra line in the config for domains for rewrites to work.
old: 2.2
Quote:
<VirtualHost 192.168.1.221>
DocumentRoot /home/steve/public_html
ServerName domain.com
ServerAlias www.domain.com
<Directory "">
Options All -Indexes
AllowOverride ALL
</Directory>
</VirtualHost>
|
new : 2.4
Quote:
<VirtualHost 192.168.1.221>
DocumentRoot /home/steve/public_html
ServerName domain.com
ServerAlias www.domain.com
<Directory "">
Options All -Indexes
AllowOverride ALL
Require all granted ## < this line
</Directory>
</VirtualHost>
|
hopefully this can help someone who ever upgrades ;)