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 30th April 2012, 11:21
todx todx is offline
Member
 
Join Date: Apr 2012
Posts: 77
Thanks: 33
Thanked 6 Times in 5 Posts
Default I can only access Roundcube on port 8080

Is it possible to configure virtual hosts so I will be able to access roundcube webmail on https://mydomain.com/webmail?

I followed the following tutorials:
http://www.howtoforge.com/perfect-se...er-ispconfig-3
http://www.howtoforge.com/changing-f...config3-server

Roundcube vhost under conf.d inside apache2 directory:
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://mydomain.com/webmail/  [L]
    </Location>
  </IfModule>
</IfModule>

Last edited by todx; 30th April 2012 at 11:26.
Reply With Quote
Sponsored Links
  #2  
Old 1st May 2012, 11:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

<vhost>/webmail should work. Please make sure that /var/www/webmail is part of open_basedir for the vhosts where you want to use RoundCube.
__________________
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
  #3  
Old 1st May 2012, 12:35
todx todx is offline
Member
 
Join Date: Apr 2012
Posts: 77
Thanks: 33
Thanked 6 Times in 5 Posts
Default

Because of this rule:

Code:
RewriteEngine on
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule . https://mydomain.com/webmail/  [L]
which is fine and everything, I get redirected to https://mydomain.com/webmail/ every time and anywhere I put /webmail at the end (this part is great). But once I get redirected I get an error:

Code:
ERROR 500 - Internal Server Error!
...with ISPConfig3 template. Is there some problem with .htaccess or something like that?

Again...accessing the webmail via: https://mydomain.com:8080/webmail works fine.

EDIT: *** I have also added /var/www/webmail to my open_basedir under mydomain.com.

Last edited by todx; 1st May 2012 at 12:37.
Reply With Quote
  #4  
Old 1st May 2012, 16:26
Horfic Horfic is offline
Senior Member
 
Join Date: Mar 2009
Location: Austria
Posts: 325
Thanks: 55
Thanked 95 Times in 60 Posts
Send a message via Skype™ to Horfic
Default

You can try my roundcube.conf file for apache2.

http://bugs.web-wack.at/attachments/...roundcube.conf

just edit the path for roundcube
__________________
web wack creations - We create your custom web application
Mailuser interface for ISPConfig 3
Reply With Quote
  #5  
Old 3rd May 2012, 19:55
MicroNL MicroNL is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Add this below "allow from all" to the roundcube.conf and you should be good:

Code:
DirectoryIndex index.php

	<IfModule mod_php5.c>
		AddType application/x-httpd-php .php

		php_flag magic_quotes_gpc Off
		php_flag track_vars On
		php_flag register_globals Off
		php_value include_path .
	</IfModule>
</Directory>
Had the same issue for a while and this is what fixed it. Hope it does the same for you.
Reply With Quote
The Following User Says Thank You to MicroNL For This Useful Post:
todx (7th May 2012)
  #6  
Old 7th May 2012, 12:05
todx todx is offline
Member
 
Join Date: Apr 2012
Posts: 77
Thanks: 33
Thanked 6 Times in 5 Posts
 
Default

Worked perfectly! Thanks!
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
roundcube SSL port aldo Installation/Configuration 1 12th April 2012 21:03
I cant log into the administration, Unable to connect to port 8080 Samgarr Installation/Configuration 3 17th February 2011 17:59
squid port 443 problem. abid HOWTO-Related Questions 1 26th March 2009 18:08
FTP access to roundcube pkg install directories dancn General 4 11th August 2008 20:03
Access Denied on Port: 81 nandhu Installation/Configuration 2 10th August 2005 15:05


All times are GMT +2. The time now is 01:08.


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