Default page not showing for a sharedip

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,426
Location
London UK
I had no problems with this until recently, I noticed this by accident.
I have 3 IPs, 1 server (admin) and 2 shared (2 resellers). Few weeks ago I deleted a domain on a shared IP. Thought nothing of it, but now when I go to that IP (or domain, the DNS is still live), it gives a 403 page :confused: - I haven't touched the ips.conf template at all and I can see an index.html in the sharedip folder.

The other IPs show the correct index pages.

Any ideas?

Note: https://IP works! :confused:
 
Last edited:
So you are saying that if we go to the domain we will get a 404 error and if we go to the ip we will get the shared ip message?

We need the domain and ip so we can check it.
 
heres the IP that gives a 403:

87.98.250.196

server1# ls -l /home/lawshost/domains/sharedip
-rw-r--r-- 1 root root 1454 2009-02-04 18:41 404.shtml
-rw-r--r-- 1 root root 1120 2008-09-15 04:16 banner.gif
-rw-r--r-- 1 root root 927 2009-01-03 01:51 htaccess
-rwxr-xr-x 1 root root 244 2008-09-17 17:10 index.h
-rw-r--r-- 1 root root 1390 2009-07-20 23:06 index.htm
-rw-r--r-- 1 root root 1411 2008-12-29 02:36 index.htm_
-rw-r--r-- 1 root root 1390 2009-07-21 01:30 index.html
-rw-r--r-- 1 root root 1392 2009-07-21 00:01 index.php
-rw-r--r-- 1 root root 4267 2008-09-15 04:17 lhlogo.jpg
-rw-r--r-- 1 root root 1454 2008-12-30 09:46 sub_index.php
-rw-r--r-- 1 root root 110 2009-02-25 13:45 user_prefs
even with chowned to lawshost, still a 403


Heres the IP that works (same server, different reseller):

87.98.254.66

server1:/# ls -l /home/lawshost2/domains/sharedip
-rw-r--r-- 1 root root 1120 2009-01-08 17:05 banner.gif
-rw-r--r-- 1 root root 927 2009-07-21 11:15 htaccess
-rwxr-xr-x 1 root root 244 2009-01-08 17:05 index.h
-rw-r--r-- 1 root root 1411 2009-01-08 17:05 index.htm_
-rw-r--r-- 1 root root 1454 2009-01-08 17:05 index.php
-rw-r--r-- 1 root root 4267 2009-01-08 17:05 lhlogo.jpg
-rw-r--r-- 1 root root 1454 2009-01-08 17:05 sub_index.php
-rw-r--r-- 1 root root 110 2009-07-21 11:15 user_prefs
 
Also what is the permissions of the directory itself?

Code:
ls -ld /home/lawshost/domains/sharedip
 
its just home.log, but that doesn't tell me anything, and the default error.log just lists non-existant requests attempts.

What is weird is that https: works! I dont get it?

Is there any way to check what documentroot the IP is using, via ssh or something. It's obviously not using the default in ips.conf.

I also asked John via safe submit about this
 
Is there any way to check what documentroot the IP is using, via ssh or something. It's obviously not using the default in ips.conf.

Not sure what you mean by default. You should have an entry similar to this:

<VirtualHost x.x.x.x:80>
ServerName shared.domain
ScriptAliasMatch ^/~([^/]+)/+cgi-bin/+(.*) /home/$1/public_html/cgi-bin/$2
AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
DocumentRoot /home/admin/domains/sharedip

User admin
Group admin

CustomLog /var/log/httpd/homedir.log homedir
ErrorLog /var/log/httpd/error_log
</VirtualHost>

x.x.x.x will need to be 87.98.250.196. I added ErrorLog /var/log/httpd/error_log myself. You can do the same.
 
Not sure what you mean by default.
I mean to see if its really going to:

DocumentRoot /home/lawshost/domains/sharedip

I mean, it at least should display index.html as it's in that directory

x.x.x.x will need to be 87.98.250.196. I added ErrorLog /var/log/httpd/error_log myself. You can do the same.
I added it but no errors crop up...... :confused:

Unless theres some hidden redirection going on...... I'm really perplexed at this. lol
 
Make sure ips.conf is listed in httpd.conf

I am running out of options.
 
Make sure ips.conf is listed in httpd.conf
Its not, but I don't think it ever was? Even so, my other shared IP would fail, wouldn't it.

I'm running out of ideas too

I might ask John to ssh in n have a look for me - I do have this option don't I, I bought my licence outright?
 
Last edited:
If John doesn't then I would be willing to look at it, but only if it is a RedHat based system. It would be a lot faster than what I am doing now.
 
John fixed it.......and it was my error...... an include was in the wrong place in httpd.conf, he moved it & all is fine.
 
Back
Top