
8th July 2010, 00:00
|
|
HowtoForge Supporter
|
|
Join Date: Jun 2006
Posts: 25
Thanks: 12
Thanked 1 Time in 1 Post
|
|
add new subdomain with redirect type L fails when redirect path is /home/
Hi there.
Run into a problem I have replicated on two separate installs.
I add a new subdomain for a website, and set
Code:
host: home
domain: domain.com
Redirect Type: L
Redirect path: /home/
Active: checked
Browsing to the subdomain then gives me a 403
Code:
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.
I try the exact same settings with other names of subdomain and folders which work just fine.
Is this picking up on the 'home' keyword as it is potentially a system path? Am I missing something obvious?
|

8th July 2010, 10:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,186 Times in 3,203 Posts
|
|
Quote:
|
Is this picking up on the 'home' keyword as it is potentially a system path?
|
Yes.
What you can try is to use either "home/" without a / at the beginning or the full path like /var/www/clients/client5/web3/web/home/
|

8th July 2010, 13:24
|
|
HowtoForge Supporter
|
|
Join Date: Jun 2006
Posts: 25
Thanks: 12
Thanked 1 Time in 1 Post
|
|
Hi Till.
Thanks for your quick reply.
I had already tried that, and it throws an error:
ERROR
Invalid redirect path. Valid redirects are for example: /test/ or http://www.domain.tld/test/ Adding the full URL for the "Redirect Path" does seem to work, but then the L flag seems not to be respected, and the browser is forwarded to the http://www.domain.tld/home/ rather than staying on http://home.domain.tld/
This also seems to happen for any subdomain named with a root system folder name (etc, var, home). Further, creating a folder in the root with the name 'subdomain' triggers the same behaviour for any subdomains called 'subdomain'. This could cause issues, if many clients had a subdomain 'mail' and one day we created a root folder called 'mail' - it could get very messy.
Is this a bug? Should I report it on the bugtracker?
Many thanks.
Finn.
|

8th July 2010, 13:44
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,186 Times in 3,203 Posts
|
|
Quote:
|
Is this a bug? Should I report it on the bugtracker?
|
Thats the normal behaviour of the apache webserver. Its not relkated to ispconfig, ispconfig is just a frontend which makes it easier to edit apache files.
|

8th July 2010, 13:47
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,186 Times in 3,203 Posts
|
|
Just as a note, if you want to have a subdomain that has its own directory, you normally create a website in ispconfig for this subdomain and not a redirect.
|

22nd August 2010, 08:23
|
|
Member
|
|
Join Date: May 2008
Location: Denver, CO, USA
Posts: 84
Thanks: 21
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by till
Just as a note, if you want to have a subdomain that has its own directory, you normally create a website in ispconfig for this subdomain and not a redirect.
|
When I add a subdomain, what does ispconfig3 do? where does it create? I dont see where to upload files. DNS records are set.
|

22nd August 2010, 09:38
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,872
Thanks: 689
Thanked 4,186 Times in 3,203 Posts
|
|
A subdomain is a vhost alias, it does not has a separate directory.
As I mentioned above, if you want to have a separate directory, create a new website.
|

22nd August 2010, 09:42
|
|
Member
|
|
Join Date: May 2008
Location: Denver, CO, USA
Posts: 84
Thanks: 21
Thanked 0 Times in 0 Posts
|
|
aaaaaaah. I see. I didn't get it even after reading a few times.
thank you very much for your patience and details.
|
| 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 14:35.
|
|
Recent comments
2 days 5 hours ago
2 days 14 hours ago
2 days 17 hours ago
2 days 18 hours ago
2 days 19 hours ago
2 days 21 hours ago
2 days 22 hours ago
3 days 11 min ago
3 days 16 hours ago
3 days 16 hours ago