All sites gives 403

6 posts / 0 new
Last post
#1 Wed, 07/02/2014 - 16:08
someone235

All sites gives 403

Hey, I installed virtualmin and added new virtual server, but then all my unrelated domain were screwed and gave me 403 http code (forbidden). What can I do to fix this? I tried to remove the virtual server, remove virtualmin and reinstall it, but nothing helped.

Wed, 07/02/2014 - 16:18
andreychek

Howdy,

The Website Troubleshooting documentation here may assist, as it's possible that you're seeing some sort of IP address mismatch in the Apache config:

https://www.virtualmin.com/documentation/web/troubleshooting

You may also want to review the Apache error logs in $HOME/logs/error_log to check what errors are showing up in there.

-Eric

Wed, 07/02/2014 - 17:16
someone235

So you say it does that because my files in sites-available got <VirtualHost *:80>?

Wed, 07/02/2014 - 22:32
andreychek

Howdy,

All those Apache VirtualHost blocks need to be in "agreement", so to speak.

Our recommendation is to use <VirtualHost x.x.x.x:80> for all of them, though it also can work to use <VirtualHost *:80>.

Which ever you use though they all should be using the same thing, and unless you're using Apache 2.4, you would need a matching NameVirtualhost line.

Try making that change, restart Apache, and see if your sites work for you at that point.

-Eric

Thu, 07/03/2014 - 04:39 (Reply to #4)
someone235

"Our recommendation is to use `` for all of them." What is between the quotation marks? Maybe you forgot to put the CODE tag?

Thu, 07/03/2014 - 10:15 (Reply to #5)
andreychek

Nuts, I used backticks, but apparently that's not the same as code tags :-)

Okay, I modified my original comment to correct that, and added another thought or two as well.

-Eric

Topic locked