Error - You don't have permission to access / on this server

wanos

Verified User
Joined
Aug 5, 2004
Messages
16
Hi,
I have set a subdomain to point to my DA server.
It works fine when you go to the /~user page but doesn't when you access the page directly.
I have checked file permissions ... all 755 with UID/GID as the user (was originally user:apache & 711 for some reason).

Other users & domains work fine.
I would delete & recreate user but that doesn't allow me to find out why it don't work.

page is http://cp.herstik.com/~krylon &
http://krylon.herstik.com

Still no joy... anyone with any ideas.

Thanx heaps all
 
extra info

I even tried putting a copy of the files in the "www" directory of the "public_html" area but these are not being used for the /~user so it seems irrelevant at the moment.

Once again, thanx.
 
1) Have you checked that the Domains folder is set to 755

try setting chmod 755 -R domains ( usely does the trick )

2) check the users httpd.conf file for the document root
 
No joy - they are all OK. I did it anyway but it appears to have no effect. Same error.

here is a copy of the http.conf file

______SNIP_____
ServerRoot /etc/httpd


<VirtualHost XX.XX.XX.XX:80>


ServerName krylon.herstik.com
ServerAlias www.krylon.herstik.com krylon.herstik.com
ServerAdmin [email protected]
DocumentRoot /home/krylon/domains/krylon.herstik.com/public_html
ScriptAlias /cgi-bin/ /home/krylon/domains/krylon.herstik.com/public_html/cgi-bin/

User krylon
Group krylon
CustomLog /var/log/httpd/domains/krylon.herstik.com.bytes bytes
CustomLog /var/log/httpd/domains/krylon.herstik.com.log combined
ErrorLog /var/log/httpd/domains/krylon.herstik.com.error.log

<Directory /home/krylon/domains/krylon.herstik.com/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode OFF
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
</Directory>



#php_admin_value open_basedir /home/krylon/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>
______SNIP_____
The rest is just ssl etc.
There is nothing in the logs as apparently the domain needs to resolve first, but if I ping it I get replies. This is getting weird ... all seems ok.
 
Hey,

Perhaps I don't understand this too well but...

If you want what's in this site "cp.herstik.com/~krylon" to show up in this site "krylon.herstik.com".

Then, you should put those files (the ones in the cp.herstik.com/~krylon) in the DocumentRoot directory for "krylon.herstik.com"

Which, based on what you've posted, would be:

/home/krylon/domains/krylon.herstik.com/public_html

OK, what'd I miss!

David
 
wanos,

David may have a point.

Is krylon.herstik.com the default domain for user krylon?

Of course all your symptoms may be easily explained if your domain container really does start with:
Code:
<VirtualHost XX.XX.XX.XX:80>

Using a lot of "X" characters would give the symptoms you're complaining about.

If your domain container doesn't start that way, but rather with an IP#, then what are you trying to hide, since an nslookup will give your IP# away to anyone who tries it.

Is the real line:
Code:
<VirtualHost 64.27.7.50:80>
If not, then that may be the problem, as DNS is pointing the site to 64.27.7.50.

Jeff
 
yes, the IP is correct ...
I figure the IP is unimportant as I have multiple IPs & anyone can find it if they wanted to.
I have checked & double checked that stuff & I can see no reason for it not to work.
Permissions also seem fine so I see no reason for this error.

There is nothing in the error logs for the domain but I know it works as I can go to the DA admin page for that user with SSL at the domain - just not his public_html area without invoking as a username.

The username is the subdomain of herstik.com hence the /~ but I am sure that was already known.

Thnxs for looking at this
 
got it worked out - it appears that having a subdomain & a user account with that subdomain caused the conflict.
I had almost forgotten I had set it up under the main domain until I went to setup another sub-domain for testing.

OH the stupidity.
Thanx for the help all - I guess it's just my own darn fault.
 
Back
Top