GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Broke all my WordPress Sites (learn from my mistake) (https://gfy.com/showthread.php?t=1120525)

fris 09-07-2013 08:47 AM

Broke all my WordPress Sites (learn from my mistake)
 
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 ;)

borked 09-07-2013 12:29 PM

Yup, a crazy change to piss lots off
To not be taken by surprise: http://httpd.apache.org/docs/2.4/en/upgrading.html


All times are GMT -7. The time now is 08:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123