
12th October 2011, 16:36
|
|
Member
|
|
Join Date: Mar 2006
Location: Radom, Poland
Posts: 85
Thanks: 1
Thanked 1 Time in 1 Post
|
|
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
|

13th October 2011, 14:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
Originally Posted by Croydon
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.
|

23rd October 2011, 16:38
|
|
Junior Member
|
|
Join Date: Aug 2010
Posts: 27
Thanks: 20
Thanked 0 Times in 0 Posts
|
|
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
|

23rd October 2011, 16:46
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
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.
|

24th October 2011, 09:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
Quote:
Originally Posted by Petr
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.
|

25th October 2011, 20:01
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
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?
|

25th October 2011, 20:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
1) Already fixed in svn stable branch.
2) Yes, might be a good idea to add this in a future version.
|

31st October 2011, 09:17
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 290
Thanks: 12
Thanked 100 Times in 58 Posts
|
|
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.
|

31st October 2011, 09:35
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,896
Thanks: 693
Thanked 4,191 Times in 3,207 Posts
|
|
Thanks, I will check that
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 20:12.
|
|
Recent comments
11 hours 42 sec ago
20 hours 28 min ago
21 hours 18 min ago
1 day 51 min ago
1 day 5 hours ago
1 day 5 hours ago
1 day 7 hours ago
1 day 17 hours ago
1 day 22 hours ago
2 days 13 min ago