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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 18th October 2009, 19:29
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,715
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

@TimeRider:

A newsline is missing in this file. Please edit /etc/apache2/sites-enabled/000-ispconfig.conf

and change:

</Directory>NameVirtualHost a.b.c.d:80
NameVirtualHost a.b.c.d:443

to:

</Directory>
NameVirtualHost a.b.c.d:80
NameVirtualHost a.b.c.d:443

so that </Directory> stands in its own line.

@mccharlet: I'am not able to reproduce this on my servers. Are the rules still listed in the ispconfig firewall interface.

Quote:
I have the same problem to upgrade 2.03 to 3.0.4
Not sure which versions you refer to. ISPConfig 2 can not be upgradet to ISPConfig 3 and there is no ISPConfig 3.0.4 released yet, the latest released versin is 3.0.1.6
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Sponsored Links
  #12  
Old 18th October 2009, 19:44
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 261
Thanks: 61
Thanked 11 Times in 7 Posts
Exclamation

I have two debian lenny server with ispconfig 3 and i have the same problem after the upgrade

__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
  #13  
Old 20th October 2009, 00:38
TimeRider TimeRider is offline
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

@mcharlet
I assume you mean from 3014 to 3016, which is what I did, my firewall rules are fully intact here - just checked em to be sure

@till
Yeah, I added the newline, restarted apache2 and all was fine.. Will the rest of the script have completed as normal?

BUT....
@whoever!

I usually have a subdomain redirected to webmail, this suddenly stopped working...

I figured this out, but in the process, I discovered that the vhost files in sites-enabled became corrupt, after the upgrade they are intact, but if the redirect is changed, the RewriteCond lines end up garbled, resulting in an error..

To reproduce (unless this just on my system - which is why I have not filed bug report):

As stated, I already had a subdomain that has a redirect.

In the webbrowser GUI goto:
Sites/Subdomain
Redirect path (change it to anything you like)/save
try the domain, here the result was 404
check the vhost file in sites-enabled

Also, even if redirect is changed back, it still garbles the vhost file entry.

Is it just me? if not, it's easily fixed anyways

Steve!

Last edited by TimeRider; 20th October 2009 at 00:46.
Reply With Quote
  #14  
Old 20th October 2009, 10:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,715
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
Yeah, I added the newline, restarted apache2 and all was fine.. Will the rest of the script have completed as normal?
yes.

Quote:
Is it just me? if not, it's easily fixed anyways
Please post the redirect rule that ispconfig generated in the vhsot file. ISPConfig 3.0.1.6 is expanding the path in the rewrite rule to be the full system path, this was neede to fix a problem in debian. Maybe this change causes problems on your system. And I need to know which linux distribution you use and the apache version.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #15  
Old 20th October 2009, 16:02
TimeRider TimeRider is offline
Junior Member
 
Join Date: Aug 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Smile

Unfortunately, I fixed the problem once I realised what was going on:

it was something like:
RewriteRule ^/(.*)$ /var/www/webmail/var/www/web1/web/var/www/webmail $1 [L]


*or similar - it was a long repetitive line, that had a path that would not be present on the system, like /var/www/var/www/var/www

in the logs from that time it showed:

File does not exist: /var/www/clients/client1/web4/web/var/webmail
Suggesting that the line was getting truncated

My system is Ubuntu Jaunty, Apache version 2.2.11

This problem was not brought on BY the upgrade, but simply by changing the redirect in the gui AFTER the update was applied (not sure if it was present prior to 3016).

Any more info you need, let me know

Steve!
Reply With Quote
  #16  
Old 20th October 2009, 16:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,715
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Ok, so your original redirect line that you entered in the interface was /var/www/webmail ?

Then it is relateively clear for me what happened. ISPConfig does not accept redirects anymore that point to a absolute path outside of the website directory for security reasons since this release. The reason for this is that your clients are able to create redirects and if ispconfig would allow absolute paths then it would be possible that someone creates redirects that point to directorys where he should not have access to.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #17  
Old 20th October 2009, 17:25
StrikerNL StrikerNL is offline
Member
 
Join Date: Feb 2009
Posts: 45
Thanks: 9
Thanked 10 Times in 8 Posts
Default

I updated my VMware image to 3.0.1.6.

See: http://www.vmware.com/appliances/directory/324933 or http://vm.ddcrew.com/
Reply With Quote
The Following User Says Thank You to StrikerNL For This Useful Post:
till (20th October 2009)
  #18  
Old 20th October 2009, 20:36
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

Quote:
Originally Posted by till View Post
ISPConfig does not accept redirects anymore that point to a absolute path outside of the website directory for security reasons since this release. The reason for this is that your clients are able to create redirects and if ispconfig would allow absolute paths then it would be possible that someone creates redirects that point to directorys where he should not have access to.
I would like to use my new ISPConfig3 server for TYPO3 webhosting as i did with my ISPConfig2 server. One TYPO3 source within the folder /var/www/typo3src-4.2.8/ and the dummy files within the web of the clients, synchronised with a symbolic link as described here: http://www.howtoforge.com/typo3_on_ispconfig

Does that mean such setup is not possible anymore?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #19  
Old 20th October 2009, 20:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,715
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
Originally Posted by Hans View Post
I would like to use my new ISPConfig3 server for TYPO3 webhosting as i did with my ISPConfig2 server. One TYPO3 source within the folder /var/www/typo3src-4.2.8/ and the dummy files within the web of the clients, synchronised with a symbolic link as described here: http://www.howtoforge.com/typo3_on_ispconfig

Does that mean such setup is not possible anymore?
This is something different and has nothing to do with apache redirects. Typo3 uses symlinks and not apache rewrite rules.

Symlinks are disabled too by default as your clients can misuse the setup to access data from your other clients but you can enable symlinks by commenting out the php open_basedir directive in the vhost template.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Hans (20th October 2009)
  #20  
Old 20th October 2009, 21:00
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 212
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
 
Default

Till thanks for the explanation.
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
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
ISPConfig 3.0.1 released till General 36 29th March 2009 14:30
ISPConfig 2.2.27 released till General 20 28th November 2008 12:45
ISPConfig 3.0.0.6 Beta released till General 38 21st September 2008 19:15
phpMyAdmin 2.11.8 package released for ISPConfig 2 Hans General 2 29th July 2008 07:23
ISPConfig 2.3.3-dev released till General 10 12th March 2008 21:08


All times are GMT +2. The time now is 13:59.


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