Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 12th October 2011, 13:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

Thanks for the bugreport. I've added it to the bugtracker.

http://bugtracker.ispconfig.org/inde...s&task_id=1798
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 12th October 2011, 17:36
andypl andypl is offline
Member
 
Join Date: Mar 2006
Location: Warsaw, Poland
Posts: 99
Thanks: 1
Thanked 3 Times in 3 Posts
Default Polish theme bug

Error as in the attached graphic file, marked in red.
Theme ISPConfig set to default_no_navimg and language PL.
Browser: Firefox 7.0.1, Chrome 14.0.835.202
Attached Images
 
Reply With Quote
  #13  
Old 13th October 2011, 15:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by Croydon View Post
I don't know if this is really a bug or something weired on my server.

With 3.0.4 Beta 1 and even the current svn from today the redirect functions of subdomains and domain aliases do not work anymore.

I tried to debug it and in the apache2 plugin the rewrite_rules array is correctly filled and sent to tpl system via setLoop().

The master conf section looks like this
HTML Code:
<tmpl_if name="rewrite_enabled">

    RewriteEngine on

<tmpl_if name='seo_redirect_enabled'>

    RewriteCond %{HTTP_HOST} ^<tmpl_var name='seo_redirect_origin_domain'>$ [NC]
    RewriteRule ^(.*)$ http://<tmpl_var name='seo_redirect_target_domain'>/$1 [R=301,L]

</tmpl_if>

<tmpl_loop name="redirects">
    RewriteCond %{HTTP_HOST}   <tmpl_var name='rewrite_domain'>$ [NC]
    RewriteRule   ^/(.*)$ <tmpl_var name='rewrite_target'>$1  <tmpl_var name='rewrite_type'>
</tmpl_loop>
</tmpl_if>
The RewriteEngine On entry is correctly put into the vhost file, but the redirects loop puts out nothing.
The SEO rewrite for the main domain works as intended, but no additional redirect rewrite rules.

Edit: It is a fresh install of ispc on debian squeeze, no update.
The domain alias entries are inserted correctly into the vhost file.
I've just fixed the problem.

The problem was the new <tmpl_loop name="vhosts"> loop in vhosts.conf.master so that we have a nested <tmpl_loop name="redirects"> loop. Nested loops need a special treatment.
__________________
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
  #14  
Old 23rd October 2011, 17:38
Petr Petr is offline
Member
 
Join Date: Aug 2010
Posts: 30
Thanks: 22
Thanked 0 Times in 0 Posts
Default

hi.. pls. is possible testing this error?
if create new web vhost in isp 3.0.4 , and delete him, after restart server ( or apache ) , apache not starting ( error v100 vhost not exist ).
vhost created in old version isp is seems deleted no problem.

( maybe is problem only my server? )

debian lenny , PHP/5.2.17-0.dotdeb.0

thx Petr
Reply With Quote
  #15  
Old 23rd October 2011, 17:46
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 263 Times in 208 Posts
Default

I don't know exactly how to reproduce this, but I had a similar problem once.
It seems to be related to deleting and adding (or adding and deleting) the same domain (vhost) too fast - so the first job has not finished.

Sometimes the cron seems to not delete the vhost symlink in sites-enabled although the file in sites-available is deleted - this leads to the apache restart error.
As soon as you delete the symlink by hand the apache restart works again.
Reply With Quote
  #16  
Old 24th October 2011, 10:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by Petr View Post
hi.. pls. is possible testing this error?
if create new web vhost in isp 3.0.4 , and delete him, after restart server ( or apache ) , apache not starting ( error v100 vhost not exist ).
vhost created in old version isp is seems deleted no problem.

( maybe is problem only my server? )

debian lenny , PHP/5.2.17-0.dotdeb.0

thx Petr
I've added this to our bugtracker, so we will check this.
__________________
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
  #17  
Old 25th October 2011, 21:01
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 263 Times in 208 Posts
Default

I have two things related to awstats statistics in latest ispc beta:

1.)
I have enabled awstats 1-2 days ago and if i call the /stats/ dir and enter the correct access data I get the period select-box on top, but below it says:

Quote:
The requested URL /stats/fixedindex.html was not found on this server.
A file called awsindex.html exists and contains the correct statistic data.


2.)
If I did not set a password for the statistics and call the /stats/ url I get an error 500 because the server cannot find the .htpasswd_stats file.
Maybe this file should be there (empty) on web creation?
Reply With Quote
  #18  
Old 25th October 2011, 21:19
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
Default

1) Already fixed in svn stable branch.
2) Yes, might be a good idea to add this in a future version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #19  
Old 31st October 2011, 10:17
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 932
Thanks: 16
Thanked 263 Times in 208 Posts
Default

I don't know if this is fixed in stable branch, but in trunk theres a problem with the seo-redirect:

Code:
<tmpl_if name='seo_redirect_enabled'>
    RewriteCond %{HTTP_HOST} ^<tmpl_var name='seo_redirect_origin_domain'>$ [NC]
    RewriteRule ^(.*)$ http://<tmpl_var name='seo_redirect_target_domain'>/$1 [R=301,L]
</tmpl_if>
This leads to a double // at the end of the domain.

Code:
<tmpl_if name='seo_redirect_enabled'>
    RewriteCond %{HTTP_HOST} ^<tmpl_var name='seo_redirect_origin_domain'>$ [NC]
    RewriteRule ^(.*)$ http://<tmpl_var name='seo_redirect_target_domain'>$1 [R=301,L]
</tmpl_if>
should be correct.
Reply With Quote
  #20  
Old 31st October 2011, 10:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,733
Thanks: 840
Thanked 5,596 Times in 4,407 Posts
 
Default

Thanks, I will check that
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
Control Panel - E-mail Tab is empty domi-nik General 15 14th April 2011 19:17
ISPConfig 3.0.3 Beta 1 ready for testing till Developers' Forum 57 10th January 2011 15:25
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 15:31
ISPConfig 3.0.0.6 Beta released till General 38 21st September 2008 20:15
ISPConfig 2.3.2-dev released till General 9 4th June 2007 11:46


All times are GMT +2. The time now is 18:58.


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