403 Error

So I just connected my domain with it, it made a new user and wen’t through everything. Now that it is connected I go to my domain but get a 403 error. I’m not sure why it is doing this. Even when I go to my VPS’ IP address I get a 403 error. Any help? :\

403 usually means “permission denied”, so I would check your permissions, htaccess files etc

I have done that

You probably missed something.

All I know is that it only started happening when I made the new user and the domain was added. If I were to delete the user it would be fine.

This happens to me “sometimes” I found the only way to fix this was to backup everything ive done on the domain and then just pure delete it, Than remake and import the backup.

Works for me when I get the 403 error on a “new made domain”

Mike

I deleted the virtual server and added it again but still getting the 403!

I have two IP address’s. For example:

.123 works when I go to it.

.122 gives a 403 and is the IP the site is on.

Silly question but are both ips pointing to the domain?

I have the IPs set to two different name servers.

Okay, I got most of the those errors worked out but I have now walked into a different problem. When I make a new user everything goes 403. This means I cannot make a FTP user without it all going 403 which really makes me mad.

Any help?

Hmm, that’s pretty odd, making a new user shouldn’t change anything that might cause an error.

My two questions are –

  1. What steps are you taking to create a new user?

  2. For the domain where you’re seeing these 403 errors – if you look in $HOME/logs/error_log, what errors are you seeing in there?

The above should help pinpoint what’s going on… thanks!

-Eric

This is what I have found out to work:

I made a new virtual server with my domain. Got a 403 error with the domain and my IPs I have for it. So, I would delete the virtual server and then everything is fine. At this point my domain is now pointing at /var/www/html which is fine. The problem is, I go to make a new user and I assign it to be at /var/www/ so I can access that via FTP. Once it is made I get a 403 error.

Hmm, how did you perform your Virtualmin installation – did you by chance use the install.sh script?

It sounds like you may be going against the grain a bit there with how you’re setting things up.

Virtualmin, by default, places websites within /home – and trying to use directories outside of that can cause some problems.

-Eric

I did wget whatever the link is to download and then ran /bin/sh install.sh

Okay, well, you didn’t mention the errors that you’re seeing in the logfiles – however, it may be related to where your websites are installed.

My recommendation is to use the default Virtualmin paths – when you create a new Virtual Server, you can then place the website for that Virtual Server in /home/username/public_html.

That would ensure that suexec isn’t causing any of the problems you’re seeing, as it default to using /home for all the content it serves.

Even if that’s not the issue you’re seeing ATM, using the default paths would would prevent other problems in the future :slight_smile:

-Eric

I made a new virtual server for it and I am getting a 403 still. Also, it won’t let me edit the error log file to get what is going on.

When you say “it won’t let you”, what error are you seeing?

You could also try using Virtualmin to access the error logs – you can do that by clicking Logs and Reports -> Apache Error Log.

-Eric

[Tue Jul 10 03:54:47 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 03:57:42 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 03:57:42 2012] [error] [client 97.125.243.23] File does not exist: /home/techspaz/public_html/favicon.ico, referer: http://techspaz.com/
[Tue Jul 10 03:57:43 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 03:57:43 2012] [error] [client 97.125.243.23] File does not exist: /home/techspaz/public_html/favicon.ico, referer: http://techspaz.com/
[Tue Jul 10 04:23:13 2012] [error] [client 67.202.17.99] File does not exist: /home/techspaz/public_html/manager
[Tue Jul 10 04:34:01 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 04:34:01 2012] [error] [client 97.125.243.23] File does not exist: /home/techspaz/public_html/favicon.ico, referer: http://techspaz.com/
[Tue Jul 10 04:54:08 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 04:54:08 2012] [error] [client 97.125.243.23] File does not exist: /home/techspaz/public_html/favicon.ico
[Tue Jul 10 05:02:07 2012] [error] [client 81.152.187.113] File does not exist: /home/techspaz/public_html/community
[Tue Jul 10 05:16:19 2012] [error] [client 81.152.187.113] File does not exist: /home/techspaz/public_html/community
[Tue Jul 10 06:07:57 2012] [error] [client 108.171.243.62] Directory index forbidden by Options directive: /home/techspaz/public_html/, referer: http://techspaz.com/
[Tue Jul 10 06:07:57 2012] [error] [client 108.171.243.62] Directory index forbidden by Options directive: /home/techspaz/public_html/, referer: http://techspaz.com/
[Tue Jul 10 06:10:34 2012] [error] [client 97.125.243.23] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 06:10:34 2012] [error] [client 97.125.243.23] File does not exist: /home/techspaz/public_html/favicon.ico
[Tue Jul 10 06:14:15 2012] [error] [client 198.186.192.44] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 07:08:45 2012] [error] [client 198.186.192.44] Directory index forbidden by Options directive: /home/techspaz/public_html/
[Tue Jul 10 07:21:28 2012] [error] [client 66.249.67.170] File does not exist: /home/techspaz/public_html/robots.txt
[Tue Jul 10 07:38:21 2012] [error] [client 66.249.67.170] Directory index forbidden by Options directive: /home/techspaz/public_html/

Also, it says that it isn’t a file that is editable.

Howdy,

The errors listed in there are “Directory index forbidden” errors – that suggests that it’s just missing website content.

Try uploading a simple index.html site into the public_html folder, are you able to view that then without any errors?

-Eric