
4th October 2010, 15:28
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
several problems
1. Somehow one of my client sites became the default domain for my server ip--enter the ip alone and his site comes up. I have no idea how that happened--nothing was done but to add the site in ISPConfig 3.
How do I change it back?
2. Got the
"Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."
error for several sites and found that the permissions were wrong on the web directories for those sites.
What could cause that? They were setup in ISPConfig 3 and I never changed any permissions.
3. One site won't come up at all but goes to the wrong default site I mention above--the vhost file shows the correct directory and I've checked and rechecked the files and permissions--nothing seems to work.
4. All sites setup under one client had a strange sftp connection problem when I was copying over the tar file of the site. The username was accepted, but when the password was entered, the connection was closed.
Triple-checked the passwords were correct, deleted the sites and reinstalled them in ISPconfig 3, still same error--had to give up and delete the Client and start over.
Most of the sites work fine and without problems, so it's weird that it's just some of the sites that have these errors.
Using Debian Lenny.
Last edited by PermaNoob; 4th October 2010 at 15:34.
|

4th October 2010, 16:38
|
|
Banned
|
|
Join Date: Sep 2009
Posts: 132
Thanks: 10
Thanked 12 Times in 7 Posts
|
|
1 - is normal not a bug.
2 - dont use the * for ip.
3- maybe somewone changed to suexec and the permissions are all wrong.
|

4th October 2010, 16:56
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,191 Times in 3,209 Posts
|
|
1) As addition to ivomendoca's answer, if you point non existing websites to a specific vhost, then create a apache default vhost:
http://www.howtoforge.com/forums/sho...+default+vhost
|

4th October 2010, 17:16
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
Quote:
Originally Posted by till
|
the websites exist
I created a test subdirectory and subdomain in ispconfig pointing to that directory and that works, but the main domain still just redirects to the ip as though there is no apache record.
I DID select the ip address and not *.
|

4th October 2010, 17:34
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
Seems it was a problem with the Firefox cache--even though I hit reload. Tried Safari and it directed to the correct directory, though now the images won't load, and Firefox still goes to the default website instead of the correct directory, though I restarted it and cleared the cache and cookies.
As for problem 4, had that happen again today and I had to turn off Jailkit to be able to connect by sftp with the user's login.
Last edited by PermaNoob; 4th October 2010 at 18:08.
|

4th October 2010, 18:19
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
I've discovered that the domains don't work with www in front of the domain name--anyone know how to make www.domain.com work?
I use the domain registrar's dns, and www is in the address pointing to the domain along with the domain without www.
nvm, found the solution:
Log in to ISPconfig , then click on sites , then select the site and then select "Auto-subdomain" to www. and press save
Last edited by PermaNoob; 4th October 2010 at 18:30.
|

4th October 2010, 19:02
|
|
Moderator
|
|
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,010
Thanks: 254
Thanked 134 Times in 120 Posts
|
|
As for point 1
If you 1st had domain's b.com, c.com and d.com the site b.com will showup when you enter the IP of the server.
If you later add domain a.com, than this wil become the one that will showup when the IP is used.
Apache is reading the vhost files in alphabetical order.
An easy fix if you want b.com tobe the site to showup when an IP is entered is to create a symlink in /etc/apache2/sites-enabled named @000-b.com and point it to /etc/apache2/sites-enabled/b.com.vhost
Make sure that you restart apache again when done.
__________________
Never execute code written on a Friday or a Monday.
|

4th October 2010, 22:21
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
ok, thanks for that help.
I think I figured out the problem with the web directory ownership as root and permissions problem--I had changed the shell user login to the web directory like /var/www/clients/client3/web9/web instead of /var/www/clients/client3/web9 thinking that would make it more convenient for them so that when they logged in to upload files they wouldn't have to change to the web directory (yeah, they usually just start uploading wherever they login, even if the instructions to upload to the web directory are right in front of them), but apparently that screws things up if you're using jailkit.
|

5th October 2010, 01:30
|
|
Senior Member
|
|
Join Date: Jan 2007
Posts: 159
Thanks: 11
Thanked 4 Times in 4 Posts
|
|
Now I've got 2 domains which won't resolve to the correct directory.
nvm, time fixed it.
Last edited by PermaNoob; 5th October 2010 at 01:35.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 20:14.
|
|
Recent comments
14 hours 27 min ago
21 hours 8 min ago
1 day 58 min ago
1 day 2 hours ago
1 day 11 hours ago
1 day 20 hours ago
1 day 21 hours ago
2 days 53 min ago
2 days 5 hours ago
2 days 5 hours ago