This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Using Custom Vhost Entries for Webmail, MySQL, Etc.
#69
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
First thing I noticed is you added a closing </virtualhost>. Sentora will automatically add it when it re-writes the vhost information.


Also, to use the alias method for every domain automatically, you need to add:

Code:
# Alias for MySQL login
Alias "/mysql" "/etc/sentora/panel/etc/apps/phpmyadmin"
<Directory "/etc/sentora/panel/etc/apps/phpmyadmin/">
   php_admin_value open_basedir /etc/sentora/panel/etc/apps/phpmyadmin
   Options +FollowSymLinks -Indexes
   AllowOverride All
   Require all granted
</Directory>
# Alias for roundcube WebMail login
Alias "/webmail" "/etc/sentora/panel/etc/apps/webmail"
<Directory "/etc/sentora/panel/etc/apps/webmail/">
   php_admin_value open_basedir /var/sentora/temp/:/etc/sentora/panel/etc/apps/webmail:/var/sentora/logs/roundcube
   Options +FollowSymLinks -Indexes
   AllowOverride All
   Require all granted
</Directory>
Location: Module Admin > Apache Admin > Global VHost Entry
Save and wait for the httpd-vhosts.conf file to be re-written and for apache to reload (About 5 minutes).
Then any domain or sub domain should be able to access your webmail or phpmyadmin by using domain.com/webmail or sub.domain.com/webmail and domain.com/mysql or sub.domain.com/mysql
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by: inkoop@topmatica.nl


Messages In This Thread
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - by TGates - 02-24-2018, 08:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
SSL and Custom Vhost Entries for Webmail etienne7702 5 14 ,264 03-08-2018, 09:54 PM
Last Post: etienne7702
How to overwrite default admin. vhost? NIicK 1 6 ,408 03-27-2016, 01:16 AM
Last Post: Me.B
Roundcube Webmail https path pthalmann 0 4 ,519 12-29-2014, 09:09 AM
Last Post: pthalmann

Forum Jump:


Users browsing this thread: 2 Guest(s)