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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th October 2005, 10:22
tstich tstich is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default UI Problem with additonal Apache directives

In the WEB configuration page:

When i add some additional apache directives to a web that contain something like this %{HTTP_HOST}. The part with the {} is removed from the textbox after updating the database. The data however is stored correctly in the database.

Example:

RewriteCond %{HTTP_HOST} ^.*$
...

After saving the changes the text box shows

RewriteCond % ^.*$


Thanks,
Timo
Reply With Quote
Sponsored Links
  #2  
Old 3rd November 2005, 12:08
tstich tstich is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...any idea if this is a bug?

It gets very anoying! Every time i open the web config with the problematic web, the database gets updated with the content of the text box. Which is the original directives minus the {HTTP_HOST} variable.
So i have to enter the {HTTP_HOST} over and over to make this web run

Please help!
Thanks a lot.
Reply With Quote
  #3  
Old 3rd November 2005, 12:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Thats a problem with the templating library that ISPConfig uses. It strips off the {} from the content. I think there is no solution yet.

Workaround: Define the part you want to be included in an extra file and include this in the httpd.conf

1) Make a directory /etc/apache/vhost_includes/
2) Make a text file www.mydomain.com.conf inside this directory which contains the rewrite rules you want to add to the vhost.
3) In the apache directives field in ISPConfig you insert:

Include /etc/apache/vhost_includes/www.mydomain.com.conf
Reply With Quote
  #4  
Old 3rd November 2005, 14:11
tstich tstich is offline
Junior Member
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks for your helpful answer!
Your workaround works fine :-)

-Timo
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
double apache installation (with php) aolex Installation/Configuration 3 19th October 2005 17:04
Warnings in ispconfig.log and path for apache problem. Pelle Installation/Configuration 7 16th October 2005 23:21
Apache Directives AngelDrago Installation/Configuration 1 8th October 2005 20:37
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 16:37
Problem with webmail MyLinux General 10 17th September 2005 14:31


All times are GMT +2. The time now is 14:40.


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