webmail alias

Started by carmageddon63, January 02, 2015, 11:15:40 AM

Previous topic - Next topic

carmageddon63

hi search but have not see anything about this.
how can i change ip/roundcube like example.com/webmail

thank you

maestrofx

Quote from: carmageddon63 on January 02, 2015, 11:15:40 AM
hi search but have not see anything about this.
how can i change ip/roundcube like example.com/webmail

thank you

you can make symlink from roundcube folder to webmail one. And fix permission. It works.

sjorsnl

Got a quick tutorial for that? I tried:

ln -s /usr/local/apache/htdocs/roundcube /usr/local/apache/htdocs/webmail

but that does not seem to be working...

cgo372

I also have a problem with the webmail. Let me explain I have several websites on the vps and a shared IP.
When I type the shared IP XXX.XXX.XXX.XXX/webmail or Roundcube I get the Roundcube page
When I type www.mysite.com/webmail or roundcube I have an error 500.

I fixed the permissions for each account and it doesn't work. Is there something I'm missing there!

I created a conf file for apache with the following

Alias /webmail /usr/local/apache/htdocs/roundcube
Alias /roundcube /usr/local/apache/htdocs/roundcube

<Directory /usr/local/apache/htdocs/roundcube>
  Options +FollowSymLinks
  DirectoryIndex index.php
  AllowOverride All
  Order Deny,Allow
  Allow from All
</Directory>

So I get the symlink to Webmail but not the website.com/webmail

Any clue? thanks for your help

Administrator

you can't use domains since the SECURITY (suPHP and SUExec) will block it.
you can only user server hostname and IP for webmail, ftp and phpmyadmin.

cgo372

But then what makes that this way is possible with ISPConfig3 using also SUPHP?

cgo372

So my question now is how to bypass suPHP to get roundcube to work?

Waldorf

In /usr/local/apache/conf/httpd.conf create an alias to the roundcube directory:

Alias /roundcube /usr/local/apache/htdocs/roundcube

and add the directory settings:

<Directory /usr/local/apache/htdocs/roundcube>
    Options -Indexes
    AllowOverride All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/config>
    Order Deny,Allow
    Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/temp>
    Order Deny,Allow
    Deny from All
</Directory>

<Directory /usr/local/apache/htdocs/roundcube/logs>
    Order Deny,Allow
    Deny from All
</Directory>


Add the following directory setting to /usr/local/apache/conf.d/vhosts.conf:

<Directory /usr/local/apache/htdocs/roundcube>
    Options -Indexes
    AllowOverride All
    <IfModule mod_suphp.c>
         suPHP_Engine On
         suPHP_UserGroup nobody nobody
     </IfModule>
</Directory>


Finally, configure suphp to allow access to the round cube directory by adding the roundcube directory to the docroot in /usr/local/apache/conf.d/suphp.conf. You can also set check_vhost_docroot to false, but this is not recommended as it is a potential security risk.

Hope this helps... 

Administrator

new version comes with this fixes