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
  #1  
Old 19th November 2012, 14:04
pallermo pallermo is offline
Junior Member
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 6 Times in 5 Posts
Exclamation How to redirect on right way? - ISPConfig3

Hi guys,
recently I have removed from my server (Debian 6.0 with ISPConfig 3) squirrel mail and install in /var/www/webmail another webmail client (Roundcube).
Everything works perfectly but when I tried to do redirects for /webmail for all domains on my server I am getting ERROR 403 - Forbidden! I can't open page at all. I made .conf file for redirect in /etc/apache2/conf.d/
Till now I have used this method for a long time and it was working good, but now with ISPConfig3 it can't work.
Also tried to change chmod of folder to www-data but it also can't work.
M I missing something or?
What could be the problem?

p.s. For setup of server I was using - Perfect server Debian...bla bla bla from howtoforge.
Reply With Quote
Sponsored Links
  #2  
Old 19th November 2012, 15:18
pallermo pallermo is offline
Junior Member
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 6 Times in 5 Posts
Default

It can work only in this case:

Code:
# RoundCube alias and redirect functions
Alias /webmail /var/www/webmail
<Directory /var/www/webmail>
  Options +FollowSymLinks
  # This is needed to parse /var/www/webmail/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all
</Directory>
# Protecting basic directories:
<Directory /var/www/webmail/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>
<Directory /var/www/webmail/temp>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>
<Directory /var/www/webmail/logs>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>
<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /webmail>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://www.domain.com:8080/webmail/  [L]
    </Location>
  </IfModule>
</IfModule>
If I remove mode_rewrite I get Error 500.
Damn
Reply With Quote
  #3  
Old 19th November 2012, 15:43
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,419
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

There is nothing special in this configuration regarding ispconfig, the only difference is that you have to explicitly allow access to the directory with:

<Directory /path/to/your/webmail/install>
AllowOverride All
order allow,deny
allow from all
</Directory>

and then add a alias for this directory. Ensure that you add your configuration after the configuration of the other vhosts is loaded by placing your additional config file in /etc/apache/sites-enabled and give it a name like 900-webmail.conf

were you instalelled your webmail client.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 19th November 2012, 16:45
pallermo pallermo is offline
Junior Member
 
Join Date: Feb 2010
Posts: 16
Thanks: 0
Thanked 6 Times in 5 Posts
 
Default

And just to figure out how to do all of these...let me check one again what I have to do ))
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
Redirect Problems in ISPConfig 3.0.4.1 midcarolina General 0 27th November 2011 17:34
New feature request: Frame redirect funtion for ISPConfig3 Hans Feature Requests 1 12th January 2011 00:43
amavis rejects all inbound emails aclhkaclhk Installation/Configuration 5 28th February 2010 04:24
Redirect Wireless Client to Late-Pay Notice giganet Server Operation 1 19th June 2009 08:57
Newly Installed ISPConfig3 on Ubuntu 8.04 : login redirect fail ? cripperz Installation/Configuration 5 22nd March 2009 12:15


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


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