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.
#61
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
If all sites are 403, apache server is running but you have a major error on the location of your sites or files.
PM me your /etc/sentora/configs/apache/httpd-vhosts.conf file so I can see what is going on.
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#62
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(08-30-2017, 11:52 AM)TGates Wrote: If all sites are 403, apache server is running but you have a major error on the location of your sites or files.
PM me your /etc/sentora/configs/apache/httpd-vhosts.conf file so I can see what is going on.

Thank you !!

Yesterday a friend was able to fix the problem. Dont know what he did but i will post the answer here to help others.

Still cant make it work with webmail.mydomain.com

now i´m affraid to change things and dont be able to recover later...
Reply
Thanks given by:
#63
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
If you follow the tutorial it will work. You must also add a DNS entry for webmail so your server knows where to redirect it Wink
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#64
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(09-01-2017, 05:11 AM)TGates Wrote: If you follow the tutorial it will work. You must also add a DNS entry for webmail so your server knows where to redirect it Wink

Finally, after a lot of failed attempts this is what worked for me :

</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>

All the domains was working with https (letsencrypt) and for now after adding this code in the virtual host override i´m able to access via webmail.anydomain.com

Now just have to figure out how to do the same but with TLS using the existing letsencrypt certificates.
Also related to this, i would appreciate some step by step help in order to create a cron job for auto renewal of all the letsencrypt certificates.

Thanks !!
Reply
Thanks given by:
#65
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
About the certificates, you would have to make new ones for every webmail.domain.com. This is why I suggest using the alternative to this by setting it as domain.com/webmail. This way it will be covered by the domain's certificate Cool  (Which is how I have mine setup now.)
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:
#66
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(09-03-2017, 09:22 AM)TGates Wrote: About the certificates, you would have to make new ones for every webmail.domain.com. This is why I suggest using the alternative to this by setting it as domain.com/webmail. This way it will be covered by the domain's certificate Cool  (Which is how I have mine setup now.)

Great! i´ll try that and come back with the results ...

Thanks!
Reply
Thanks given by:
#67
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(09-03-2017, 12:35 PM)rpuig Wrote: Great! i´ll try that and come back with the results ...

Thanks!

I think the only change is this: http://forums.sentora.org/showthread.php...54#pid6954
-TGates - Head of Support

SEARCH the Forums or read the DOCUMENTATION before posting!
Modules Maintained: 13 - Module Installs: 108k+

Find my support or modules helpful? Donate HERE
Get your domains using my affiliate link:
GoDaddy - Domains
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
SSL and Custom Vhost Entries for Webmail etienne7702 4 669 03-19-2017, 09:16 AM
Last Post: TGates
Custom Error Pages/Static Pages TGates 8 7,206 05-11-2016, 03:15 PM
Last Post: Kumar
How to overwrite default admin. vhost? NIicK 1 959 03-27-2016, 01:16 AM
Last Post: Me.B

Forum Jump:


Users browsing this thread: 1 Guest(s)