RewriteEngine not allowed here

4 posts / 0 new
Last post
#1 Mon, 08/13/2018 - 16:14
ufo56

RewriteEngine not allowed here

Hi

Suddenly i get this error some of my sites. "RewriteEngine not allowed here" Have not changed anything on webserver. Only updated debian 7 to 8. Some sites are working, some of not. Can't figure out whats wrong. Im out of ideas :/

vhost config file: https://pastebin.com/RAD552V5

EDIT: In whatever reason there was .htaccess file in /home/username/.htaccess not in public_html

Mon, 08/20/2018 - 19:06
thathwamasi

Hello ufo56,

Can you paste the error message on virtual server error log here ?

Sun, 08/26/2018 - 09:49
Freddy63
Freddy63's picture

"Have not changed anything on webserver" and "Only updated debian 7 to 8" doesn't add up.

Distro upgrades are a big deal and often breaks stuff.

Tue, 08/28/2018 - 02:24
volk

You should never do a major OS upgrade in place without a proper backup of your server configuration files and data. Basically a new OS upgrade will replace all the software, paths and configurations, sometimes it moves them around to new locations which is almost very likely what happen in your case. For example, maybe that Unix User and Group don't match your correct web home user so the whole vhost configuration you posted will not work. You will have to check every single setting of Virtualmin, Apache, etc, manually to see what is wrong. There can be more than .htaccess file so maybe the one you are looking for is not the same that should be in the public_html directory.

Topic locked