Sentora Support Forums
Using Custom Vhost Entries for Webmail, MySQL, Etc. - Printable Version

+- Sentora Support Forums (https://senforums.mach-hosting.com)
+-- Forum: Sentora Forum Archives (https://senforums.mach-hosting.com/forumdisplay.php?fid=5)
+--- Forum: Sentora Public Support Forums v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=32)
+---- Forum: Community Guides & How-To's v1.0.x (https://senforums.mach-hosting.com/forumdisplay.php?fid=33)
+---- Thread: Using Custom Vhost Entries for Webmail, MySQL, Etc. (/showthread.php?tid=495)

Pages: 1 2 3 4 5 6 7 8 9


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - TGates - 03-06-2017

You're getting it Wink
That is why the custom entry starts with </virtualhost> to close the original and start a new one.


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - ddlxl - 03-06-2017

Ok, thanks!

I was adding the sub domain cuz I thought I had to create the one I wanted to edit. I thought the custom edit was just for the vhost we were selecting.

sorry for the mess and thanks once again.


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - TGates - 03-10-2017

Updated to include open_basedir restrictions for better security.


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - rpuig - 08-30-2017

hello everyone !
i need some help with this.... i have added iin vhost

</VirtualHost>
# Configuration for WebMail - webmail.yoursite.tld
<VirtualHost *:80>
ServerAlias webmail.mydomain.com
ServerAdmin webmaster@mydomain.com
DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
ServerName webmail.mydomain.com
AddType application/x-httpd-php .php3 .php
<Directory />
Options FollowSymLinks Indexes
AllowOverride All
Order Allow,Deny
Allow from all
</Directory>

but when i go to webmail.mydomain.com receive error saying :

403 FORBIDDEN
you dont have permission to access / on this server
Apache Server at webmail.mydomain.com Port 80

any suggestions?
thanks!!!


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 08-30-2017

(03-10-2017, 05:02 AM)TGates Wrote: Updated to include open_basedir restrictions for better security.

if i use open_basedir on CentOS 7 it will not work -> http://forums.sentora.org/showthread.php?tid=495&pid=8755#pid8755

(08-30-2017, 01:14 AM)rpuig Wrote: hello everyone !
i need some help with this.... i have added iin vhost

</VirtualHost>
  # Configuration for WebMail - webmail.yoursite.tld
  <VirtualHost *:80>
  ServerAlias webmail.mydomain.com
  ServerAdmin webmaster@mydomain.com
      DocumentRoot "/etc/sentora/panel/etc/apps/webmail/"
      ServerName webmail.mydomain.com
  AddType application/x-httpd-php .php3 .php
      <Directory />
      Options FollowSymLinks Indexes
      AllowOverride All
      Order Allow,Deny
      Allow from all
      </Directory>

but when i go to webmail.mydomain.com receive error saying :

403 FORBIDDEN
you dont have permission to access / on this server
Apache Server at webmail.mydomain.com Port 80

any suggestions?
thanks!!!

Don't know much about this but using ServerAlias and ServerName together?

Don't know what your apache version is but with a newer apache i had to change this:
Code:
Order Allow,Deny Allow from all
to:
Code:
Require all granted



RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - rpuig - 08-30-2017

(08-30-2017, 02:17 AM)Ron-e Wrote: if i use open_basedir on CentOS 7 it will not work -> http://forums.sentora.org/showthread.php?tid=495&pid=8755#pid8755


Don't know much about this but using ServerAlias and ServerName together?

Don't know what your apache version is but with a newer apache i had to change this:
Code:
Order Allow,Deny Allow from all
to:
Code:
Require all granted

i just did what you suggested and now i cant access to panel.mydomain.com
i´ve eddited back to how it was and still cant get access... Sad


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 08-30-2017

which one did you do?
Restarted apache?
Did you do more modifications?
Post what you have now?
url?


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - rpuig - 08-30-2017

(08-30-2017, 03:38 AM)Ron-e Wrote: which one did you do?
Restarted apache?
Did you do more modifications?
Post what you have now?
url?

i have the exact same config i posted before, restarted apache... ok , but all sites are 403 forbidden...even panel.mydomain.com


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - Ron-e - 08-30-2017

not much info, just guessing again..
Maybe not closed or opened a <VirtualHost> tag properly?


RE: Using Custom Vhost Entries for Webmail, MySQL, Etc. - rpuig - 08-30-2017

(08-30-2017, 03:46 AM)Ron-e Wrote: not much info, just guessing again..
Maybe not closed or opened a <VirtualHost> tag properly?

this is in the apache log:

[Tue Aug 29 14:38:36.845416 2017] [:notice] [pid 20911] mod_bw : Version 0.92 - Initialized [0 Confs]
[Tue Aug 29 14:38:36.871688 2017] [ssl:warn] [pid 20911] AH02292: Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RF$
[Tue Aug 29 14:38:36.873716 2017] [mpm_prefork:notice] [pid 20911] AH00163: Apache/2.4.7 (Ubuntu) OpenSSL/1.0.1f configured -- resuming normal operations
[Tue Aug 29 14:38:36.873738 2017] [core:notice] [pid 20911] AH00094: Command line: '/usr/sbin/apache2'