URGENT: Forbidden Error

10 posts / 0 new
Last post
#1 Sat, 03/16/2013 - 04:25
ismywebsite

URGENT: Forbidden Error

Hello

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?

Thanks!

Sun, 03/17/2013 - 02:59
lp86

check the error log to see the exact error ... /var/log/"siteadminname"_error.log

It could be a .htaccess file causing the error.

Sun, 03/17/2013 - 06:15
ismywebsite

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.

Mon, 03/18/2013 - 00:04
andreychek

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

-Eric

Mon, 03/18/2013 - 13:55 (Reply to #4)
ismywebsite

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

Mon, 03/18/2013 - 16:01
andreychek

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?

-Eric

Tue, 03/19/2013 - 11:45 (Reply to #6)
ismywebsite

The access_log file is empty.

Tue, 03/19/2013 - 12:33
andreychek

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":

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

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

-Eric

Tue, 03/19/2013 - 16:09 (Reply to #8)
ismywebsite

Wow, thanks!! :)

Fri, 03/22/2013 - 08:53
ismywebsite

Hello,

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

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

(1.1.1.1 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.

Topic locked