I need to access to webmail like this way.
webmail.mydomain.com
I have referred old post in this forum and configured vhost.conf. but always redirected to sentora login page not redirect to roundcude login.
Please help me to setup it
Many tnx
(07-17-2015, 03:49 AM)sknd Wrote: [ -> ]I need to access to webmail like this way.
webmail.mydomain.com
I have referred old post in this forum and configured vhost.conf. but always redirected to sentora login page not redirect to roundcude login.
Please help me to setup it
Many tnx
1 - Open Menu:
Admin >
Module Admin .
2 - In
Administration Modules, open
Apache Config .
3 - In
Override a Virtual Host Setting,
--Select a domain-- and click the button
Select Vhost .
4 - In
Virtual Host Override, edit the code like your config and paste in
Custom Entry:
Code:
</VirtualHost>
# Configuration for WebMail
# This configuration enable webmail for all domains.
# If you want enable only a specific domain, change * to your domain name ind ServerAlias.
<VirtualHost *:80>
ServerAlias webmail.*
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
5 - Click
Save Vhost .
Enjoy and be Happy !!! 
Getting "Internal Server Error"
(07-17-2015, 10:07 AM)sknd Wrote: [ -> ]Getting "Internal Server Error"
Please do not double post.
Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.
(07-17-2015, 01:56 PM)Ron-e Wrote: [ -> ] (07-17-2015, 10:07 AM)sknd Wrote: [ -> ]Getting "Internal Server Error"
Please do not double post.
Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.
I followed above ic.rezende's expatiation ,
</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.*
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
and in that file i can see my main domain entry
<virtualhost *:80>
ServerName mydomain.com
ServerAlias
www.mydomain.com
ServerAdmin admin@mydomain.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomain_com"
</virtualhost>
Then when ivisit : webmail.mydomain.com .I can see Internal Server error
Try adding the full domain:
</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.domain.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
Currently I have this for my webmail:
Code:
# DOMAIN: webmail.domain.tld
<virtualhost *:80>
ServerName webmail.domain.tld
ServerAlias webmail.domain.tld
ServerAdmin server@domain.tld
DocumentRoot "/etc/sentora/panel/etc/apps/webmail"
php_admin_value open_basedir "/etc/sentora/panel/etc/apps/webmail:/etc/sentora/configs/roundcube:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid, escapeshellcmd, escapeshellarg, exec"
ErrorLog "/var/sentora/logs/base_services/webmail_domain.tld-error.log"
CustomLog "/var/sentora/logs/base_services/webmail_domain.tld-access.log" combined
CustomLog "/var/sentora/logs/base_services/webmail_domain.tld-bandwidth.log" common
<Directory "/etc/sentora/panel/etc/apps/webmail">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
</virtualhost>
(07-17-2015, 07:43 PM)sknd Wrote: [ -> ] (07-17-2015, 01:56 PM)Ron-e Wrote: [ -> ] (07-17-2015, 10:07 AM)sknd Wrote: [ -> ]Getting "Internal Server Error"
Please do not double post.
Without any info about the error or what you have done we can not help you.
One option is to give us your etc/sentora/configs/apache/httpd-vhosts.conf file, most likely the error is there.
I followed above ic.rezende's expatiation ,
</VirtualHost>
# Configuration for WebMail
<VirtualHost *:80>
ServerAlias webmail.*
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
AddType application/x-httpd-php .php
<Directory "/etc/sentora/panel/etc/apps/webmail/">
Options +FollowSymLinks -Indexes
AllowOverride All
Require all granted
</Directory>
and in that file i can see my main domain entry
<virtualhost *:80>
ServerName mydomain.com
ServerAlias www.mydomain.com
ServerAdmin admin@mydomain.com
DocumentRoot "/var/sentora/hostdata/zadmin/public_html/mydomain_com"
</virtualhost>
Then when ivisit : webmail.mydomain.com .I can see Internal Server error
Did yo end the webmail part with "
</VirtualHost>", its not present in your text.
I have done Ron-e's and apinto's advices . Now i can see white blank page

. No round cube login page
If oyu are using zpanel, please change sentora to zpanel on our tips
