ServerName r2o.nxgn.co.th
ServerAlias www.r2o.nxgn.co.th
DocumentRoot /home/nxgncoth/r2o.nxgn.co.th
ServerAdmin webmaster@r2o.nxgn.co.th
UseCanonicalName Off
## User nxgncoth
UserDir disabled
UserDir enabled nxgncoth
# Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
# To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
# the user's .htaccess file. For more information, please read:
# http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
SSILegacyExprParser On
suPHP_UserGroup nxgncoth nxgncoth
SuexecUserGroup nxgncoth nxgncoth
RMode config
RUidGid nxgncoth nxgncoth
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID nxgncoth nxgncoth
PassengerUser nxgncoth
PassengerGroup nxgncoth
ScriptAlias /cgi-bin/ /home/nxgncoth/r2o.nxgn.co.th/cgi-bin/
# Global DCV Rewrite Exclude
RewriteOptions Inherit
AliasMatch "^/(\.well-known/acme-challenge)/(.*)$" "/var/www/html/$1/$2"
RewriteEngine On
RewriteCond %{HTTP_HOST} ^webmail.
RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
# Authorization header fixed => REDIRECT_HTTP_AUTHORIZATION
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteCond %{HTTP_HOST} ^zeslecp.
RewriteCond %{HTTP_HOST} !^zeslecp.com$
RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
# To customize this VirtualHost use an include file at the following location
# Include "/etc/apache2/conf.d/userdata/std/2_4/nxgncoth/nxgncoth.com/*.conf"
# BEGIN: HTTP vhosts list
ServerName r2o.nxgn.co.th
ServerAlias www.r2o.nxgn.co.th webmail.r2o.nxgn.co.th zeslecp.r2o.nxgn.co.th
DocumentRoot /home/nxgncoth/r2o.nxgn.co.th
ServerAdmin webmaster@r2o.nxgn.co.th
UseCanonicalName Off
## User nxgncoth
UserDir disabled
UserDir enabled nxgncoth
# Enable backwards compatible Server Side Include expression parser for Apache versions >= 2.4.
# To selectively use the newer Apache 2.4 expression parser, disable SSILegacyExprParser in
# the user's .htaccess file. For more information, please read:
# http://httpd.apache.org/docs/2.4/mod/mod_include.html#ssilegacyexprparser
SSILegacyExprParser On
SecRuleEngine Off
suPHP_UserGroup nxgncoth nxgncoth
SuexecUserGroup nxgncoth nxgncoth
RMode config
RUidGid nxgncoth nxgncoth
# For more information on MPM ITK, please read:
# http://mpm-itk.sesse.net/
AssignUserID nxgncoth nxgncoth
PassengerUser nxgncoth
PassengerGroup nxgncoth
ScriptAlias /cgi-bin/ /home/nxgncoth/r2o.nxgn.co.th/cgi-bin/
SSLEngine on
SSLCertificateFile /var/zesle/ssl/apache_tls/r2o.nxgn.co.th/cert.pem
SSLCertificateKeyFile /var/zesle/ssl/apache_tls/r2o.nxgn.co.th/privkey.pem
SSLUseStapling off
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
SSLOptions +StdEnvVars
AliasMatch "^/(\.well-known/acme-challenge)/(.*)$" "/var/www/html/$1/$2"
# To customize this VirtualHost use an include file at the following location
# Include "/etc/apache2/conf.d/userdata/ssl/2_4/nxgncoth/r2o.nxgn.co.th/*.conf"
RequestHeader set X-HTTPS 1
RewriteEngine On
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
# Authorization header fixed => REDIRECT_HTTP_AUTHORIZATION
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteCond %{HTTP_HOST} ^webmail.
RewriteRule ^/(.*) /___proxy_subdomain_webmail/$1 [PT]
ProxyPass "/___proxy_subdomain_webmail" "https://127.0.0.1:2083" max=1 retry=0
RewriteCond %{HTTP_HOST} ^zeslecp.
RewriteRule ^/terminal-ws/(.*) "wss://127.0.0.1:2087/terminal-ws/$1" [P,L]
RewriteCond %{HTTP_HOST} ^zeslecp.
RewriteCond %{HTTP_HOST} !^zeslecp.com$
RewriteRule ^/(.*) /___proxy_subdomain_zeslecp/$1 [PT]
ProxyPass "/___proxy_subdomain_zeslecp" "https://127.0.0.1:2087" max=1 retry=0