Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th September 2014, 00:17
madmax7 madmax7 is offline
Junior Member
 
Join Date: Sep 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Use domain name instead of alias -RoundCube

I followed perfect server for Debian and have been able to get things running. I would like to access roundcube by example.com instead of example.com/webmail. I'm fine with webmail being an option but I prefer to have it as the base domain. How do I go about this? I have tweak things so much that I'm going to do a fresh install but I would like to learn how to do this without messing anything else up. Ultimately I would like it to redirect to SSL as well so when I go to example.com it goes to https://example.com which would be my roundcube page

Last edited by madmax7; 17th September 2014 at 00:20.
Reply With Quote
Sponsored Links
  #2  
Old 17th September 2014, 08:35
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 834
Thanks: 7
Thanked 117 Times in 113 Posts
Send a message via Skype™ to srijan
Default

Quote:
redirect to SSL as well so when I go to example.com it goes to https://example.com
Check http://www.howtoforge.com/forums/showthread.php?t=59817
__________________
Br//
Srijan
Reply With Quote
  #3  
Old 17th September 2014, 15:30
madmax7 madmax7 is offline
Junior Member
 
Join Date: Sep 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is my file i'm using. Its in the conf.d folder. Do you have any suggestions. I tried using "/" as alias but it doesn't work?

Code:
# Those aliases do not work properly with several hosts on your apache server
# Uncomment them to use it or adapt them to your configuration
Alias /roundcube/program/js/tiny_mce/ /usr/share/tinymce/www/
Alias /roundcube /var/lib/roundcube
Alias /webmail /var/lib/roundcube
#Alias /        /var/lib/roundcube

# Access to tinymce files
<Directory "/usr/share/tinymce/www/">
      Options Indexes MultiViews FollowSymLinks
      AllowOverride None
      Order allow,deny
      allow from all
</Directory>

<Directory /var/lib/roundcube/>
  Options +FollowSymLinks
  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 .:/usr/share/php
  </IfModule>

  # This is needed to parse /var/lib/roundcube/.htaccess. See its
  # content before setting AllowOverride to None.
  AllowOverride All
  order allow,deny
  allow from all
</Directory>

# Protecting basic directories:
<Directory /var/lib/roundcube/config>
        Options -FollowSymLinks
        AllowOverride None
</Directory>

<Directory /var/lib/roundcube/temp>
        Options -FollowSymLinks
        AllowOverride None
        Order allow,deny
        Deny from all
</Directory>

<Directory /var/lib/roundcube/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://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]

    </Location>
  </IfModule>
</IfModule>

<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location /roundcube>
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>


<IfModule mod_rewrite.c>
  <IfModule mod_ssl.c>
    <Location />
      RewriteEngine on
      RewriteCond %{HTTPS} !^on$ [NC]
      RewriteRule . https://%{HTTP_HOST}:8080%{REQUEST_URI}  [L]
    </Location>
  </IfModule>
</IfModule>
Reply With Quote
  #4  
Old 18th September 2014, 08:24
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 834
Thanks: 7
Thanked 117 Times in 113 Posts
Send a message via Skype™ to srijan
 
Default

Check chapter 5 of the turorial http://www.howtoforge.com/how-to-ins...debian-squeeze
__________________
Br//
Srijan
Reply With Quote
Reply

Bookmarks

Tags
domain, roundcube, ssl

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
Optimizing domain module and alias module Hirbod Feature Requests 1 4th August 2014 18:31
Postfix delivery problem erebus Installation/Configuration 8 29th July 2014 21:17
Postfix spam n33dle Server Operation 2 16th June 2014 16:08
How to upgrade Roundcube 0.3 to 0.7 on Ubuntu 10.04 LTS cbj4074 Tips/Tricks/Mods 1 19th January 2012 20:50
post fix error after a year aberrio Server Operation 5 5th May 2009 22:33


All times are GMT +2. The time now is 03:35.


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