I propose a change of how rewrites are added by changing it so it doesnt do:
Code:
RewriteCond %{HTTP_HOST} ^testdomain\.xh\.se [NC]
RewriteRule ^/(.*)$ http://bigfoot.xh.se/forward/to/this/dir/$1 [R]
Instead it should do:
Code:
RewriteCond %{HTTP_HOST} ^testdomain\.xh\.se
RewriteRule ^(.*)$ /var/www/webID/web/forward/to/this/dir/$1 [L]
What this would do is simply create co-domains with true paths.
http://testdomain.xh.se
instead of
http://otherdomain.xh.se/forward/to/this/dir/
This would not pose a security threat as I see it.
If the old style behaviour is wanted, then it should have a separate forward option.
Also, I do not know if this is per design. But when changing apache directives it seems to be stripping out backslashes when the apache directive is read from database back to the client. Saving again will cause the backslashes to be removed.
Code:
RewriteCond %{HTTP_HOST} ^testdomain\.xh\.se [NC]
RewriteRule ^/(.*)$ http://bigfoot.xh.se/forward/to/this/dir/$1 [R]
would become
Code:
RewriteCond %{HTTP_HOST} ^testdomain.xh.se [NC]
RewriteRule ^/(.*)$ http://bigfoot.xh.se/forward/to/this/dir/$1 [R]
Edit... The bug I noted seems to be related and already reported at
http://www.howtoforge.com/forums/showthread.php?t=907
Recent comments
12 hours 49 min ago
19 hours 31 min ago
23 hours 21 min ago
1 day 1 hour ago
1 day 9 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 3 hours ago
2 days 4 hours ago