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.
#51
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
You're getting it Wink
That is why the custom entry starts with </virtualhost> to close the original and start a new one.
-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:
#52
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
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.
Reply
Thanks given by:
#53
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
Updated to include open_basedir restrictions for better security.
-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:
#54
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
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!!!
Reply
Thanks given by:
#55
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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...55#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
=------=
My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons
=------=


Like my work? Consider [Image: btn_donate_SM.gif]
Reply
Thanks given by:
#56
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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...55#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
Reply
Thanks given by:
#57
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
which one did you do?
Restarted apache?
Did you do more modifications?
Post what you have now?
url?
=------=
My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons
=------=


Like my work? Consider [Image: btn_donate_SM.gif]
Reply
Thanks given by:
#58
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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
Reply
Thanks given by:
#59
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
not much info, just guessing again..
Maybe not closed or opened a <VirtualHost> tag properly?
=------=
My Sentora DemoMy GithubAuxio Github
Zentora themeS-Type themeCstyleX theme
flat-color-iconssmall-n-flat-icons
=------=


Like my work? Consider [Image: btn_donate_SM.gif]
Reply
Thanks given by:
#60
RE: Using Custom Vhost Entries for Webmail, MySQL, Etc.
(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'
Reply
Thanks given by:


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

Forum Jump:


Users browsing this thread: 2 Guest(s)