Fresh Server Install ... Apache 403 Errors All Siteworx accounts

We have added some of our clients domains to the system that we would like to move over to Interworx… but we can not get this installation to work… it seems that some reason Apache is trying to serve web pages in ‘/var/www/html’ instead of users public html directory (see error below???)

You will need to modify your host file to see the error as we are trying to test the server before actually moving over real domains to this system…

It does this to every account we add to the system :frowning:

*** MODIFY HOST FILE ***
Domain: www.viridiangeeks.com
IP: 162.254.214.146

APACHE ERROR LOG

[Wed Apr 12 09:51:43 2017] [authz_core:error] [pid 21686:tid [client 96.80.52.89:62758] AH01630: client denied by server configuration: /usr/share/httpd/noindex[Wed Apr 12 09:52:17 2017] [autoindex:error] [pid 21688:tid [client 96.80.52.89:62770] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:52:17 2017] [authz_core:error] [pid 21688:tid [client 96.80.52.89:62770] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:54:59 2017] [autoindex:error] [pid 21686:tid [client 74.111.177.16:53113] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:54:59 2017] [authz_core:error] [pid 21686:tid [client 74.111.177.16:53113] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:55:15 2017] [autoindex:error] [pid 21684:tid [client 74.111.177.16:53117] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:55:15 2017] [authz_core:error] [pid 21684:tid [client 74.111.177.16:53117] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[root@localhost oper]# tail /var/log/httpd/error_log
[Wed Apr 12 09:42:52 2017] [authz_core:error] [pid 21685:tid [client 24.30.111.212:53197] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:51:40 2017] [-:error] [pid 21685:tid [client 96.80.52.89:62757] File does not exist: /var/www/html/qrg3fyoqroumr8zhv64odjozk1oa0yyw.php
[Wed Apr 12 09:51:43 2017] [autoindex:error] [pid 21686:tid [client 96.80.52.89:62758] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:51:43 2017] [authz_core:error] [pid 21686:tid [client 96.80.52.89:62758] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:52:17 2017] [autoindex:error] [pid 21688:tid [client 96.80.52.89:62770] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:52:17 2017] [authz_core:error] [pid 21688:tid [client 96.80.52.89:62770] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:54:59 2017] [autoindex:error] [pid 21686:tid [client 74.111.177.16:53113] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:54:59 2017] [authz_core:error] [pid 21686:tid [client 74.111.177.16:53113] AH01630: client denied by server configuration: /usr/share/httpd/noindex
[Wed Apr 12 09:55:15 2017] [autoindex:error] [pid 21684:tid [client 74.111.177.16:53117] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.html.var,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Apr 12 09:55:15 2017] [authz_core:error] [pid 21684:tid [client 74.111.177.16:53117] AH01630: client denied by server configuration: /usr/share/httpd/noindex



Hi viridiangeeks

Welcome to Iw forums

I am on holiday so I would open a support ticket

However, are you trying to access the website using the IP address or the domain you listed

If domain, it like looks like it points to a different domain

If access by IP address, the IP address access would use Apache root by default

You could access by IP address followed by Unix name e.g. http://1.1.1.1~unixname

Also, 403 is a forbidden error code, so you could check permissions on /home or /chroot/home

I hope that helps

Many thanks

John

Maybe the post wasn’t very clear :slight_smile:

We have added the domain www.viridiangeeks.com to the interworx system and you can access the account in siteworx…

We are accessing the domain by typing in www.viridiangeeks.com into the web browser and it is giving the 403 error. As you can see from the Apache log it is trying to serve files for the siteworx account www.viridiangeeks.com from the /var/www/html directory. It does this for every siteworx account that we have tested it with.

The DNS for www.viridiangeeks.com points to 98.124.177.53 which is alive functioning CPanel server. So in order to TEST the server we have modified the HOST file (windows/system32/driver/etc) to point the domain to the new server. This is not an issue and should not cause any issues with Apache determining where to server files from.

Obviously if Apache is trying to serv files from users that are rooted to their home directory from /var/www/html it will result in a 403 error… the question is WHY is apache trying to serve files outside of the users directories and how do you fix this.

OMG figured it out… we had assigned a different IP then the main IP for the websites… so the IP we used for the host file was not the configured IP in the VirtualHost configuration… oh well maybe this will help somebody else later who missed this!