URGENT: Forbidden Error


I’ve just imported a load of accounts from a cPanel backup and they’re all throwing a “403 Forbidden” error. I’ve checked the httpd.conf and Indexes seems to be enabled. I’ve tried chmodding the folders and index files and it’s still showing that error.

This seems to only be happening for the accounts that were restored from a cPanel backup.

Any ideas?


check the error log to see the exact error …

It could be a .htaccess file causing the error.

There’s not an error log for the site in there.

It’s for ALL the cPanel-imported sites, and not the ones that were created via Virtualmin.

Do you see an error log in $HOME/logs/error_log? Do you see any additional detail in it?


I see one, but there is no additional detail :frowning:

Hmm, how about the access_log in $HOME/logs/ – can you see your connection attempt?

Or don’t you see anything at all in the logs that suggests it’s seeing your request?


The access_log file is empty.

Okay, it sounds like something else is accepting requests for those domains then.

My suggestion is to take a look at the docs here, in the section “the wrong site shows up”:


That should help you figure out what’s going wrong there.


Wow, thanks!! :slight_smile:


When new accounts are created, Virtualmin is creating the VirtualHost in the apache config like the following:

<VirtualHost *:80>

That is what is causing the error. The VirtualHost should read the following:

<VirtualHost> ( is the IP address). Is there any way to get Virtualmin to create new accounts like this, without manually editing the httpd.conf every time?

Thank you.