Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th May 2006, 22:30
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default New way to handle co-domain rewrite + bugfix of apache directives

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
__________________
http://www.xh.se

Last edited by Norman; 9th May 2006 at 22:38.
Reply With Quote
Sponsored Links
  #2  
Old 9th May 2006, 23:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Norman
Edit... The bug I noted seems to be related and already reported at http://www.howtoforge.com/forums/showthread.php?t=907
We will check that.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 10th May 2006, 00:08
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
Default

What do you think about the rewrite proposal?
Is it unthinkably stupid?
__________________
http://www.xh.se
Reply With Quote
  #4  
Old 10th May 2006, 15:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by Norman
What do you think about the rewrite proposal?
Is it unthinkably stupid?
We had some issues with this kind of forward (but I can't remember trhem anymore... ), that's why we changed it to how it is working now...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 11th May 2006, 00:25
Norman Norman is offline
HowtoForge Supporter
 
Join Date: May 2006
Posts: 242
Thanks: 0
Thanked 18 Times in 14 Posts
 
Default

Are there any logs of the issues?

The ispconfig template seems to strip out {} and \ so I've bypassed this by adding it to apache directives as an include.
__________________
http://www.xh.se
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drupal and Apache Rewrite Rules andre Server Operation 10 4th May 2006 21:04
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45
Apache Directives? lerra Installation/Configuration 1 1st March 2006 10:02
from http to https after installation? Mahir Installation/Configuration 25 7th December 2005 20:40
UI Problem with additonal Apache directives tstich General 3 3rd November 2005 14:11


All times are GMT +2. The time now is 06:53.


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