View Single Post
Old 17th March 2012, 00:58
sjau sjau is offline
Local Meanie
Join Date: Apr 2006
Location: Switzerland
Posts: 1,158
Thanks: 4
Thanked 58 Times in 54 Posts
Default Subdomain redirect bug?

Hi there

I'm trying to redirect the subdomain "images" to the "images" folder in the default domain.

For that I did set:

Host: images
Redirect Type: No flag
Redirect Path: /var/www/
Activ: y

Now when I try to call it I get this error:

[Fri Mar 16 23:54:41 2012] [error] [client] SoftException in Application.cpp:221: File "/var/www/clients/client1/web2//web/images/gallery.php" is not in document root of Vhost "/var/www/clients/client1/web2/web"
[Fri Mar 16 23:54:41 2012] [error] [client] Premature end of script headers: gallery.php
[Fri Mar 16 23:54:41 2012] [error] [client] File does not exist: /var/www/

However when I change the Redirect Path to "/var/www/clients/client1/web2/web/images/" it works.

Basically: When using the symlinked "domain name" path it does not. When I use the "normal full" path it works. In my opinion it should work both ways.
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
Sponsored Links