HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Subdomain redirect bug? (http://www.howtoforge.com/forums/showthread.php?t=56577)

sjau 16th March 2012 23:58

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
Domain: sjau.ch
Redirect Type: No flag
Redirect Path: /var/www/sjau.ch/web/images/
Activ: y


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


[Fri Mar 16 23:54:41 2012] [error] [client 84.227.27.123] 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 84.227.27.123] Premature end of script headers: gallery.php
[Fri Mar 16 23:54:41 2012] [error] [client 84.227.27.123] File does not exist: /var/www/sjau.ch/web/images/error


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.

till 19th March 2012 08:28

Quote:

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.
This would require to extend the apache apache c code so that apache allows it to specify more then one path for the docroot in a vhost.

sjau 19th March 2012 08:31

Thanks for the reply.


All times are GMT +2. The time now is 07:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.