ServerName specialkids.in.th ServerAlias www.specialkids.in.th DocumentRoot /home/specialkids/public_html ServerAdmin webmaster@specialkids.in.th UseCanonicalName Off ## User specialkids UserDir disabled UserDir enabled specialkids # 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 specialkids specialkids SuexecUserGroup specialkids specialkids RMode config RUidGid specialkids specialkids # For more information on MPM ITK, please read: # http://mpm-itk.sesse.net/ AssignUserID specialkids specialkids PassengerUser specialkids PassengerGroup specialkids ScriptAlias /cgi-bin/ /home/specialkids/public_html/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/specialkids/specialkids.com/*.conf" # BEGIN: HTTP vhosts list ServerName specialkids.in.th ServerAlias www.specialkids.in.th webmail.specialkids.in.th zeslecp.specialkids.in.th DocumentRoot /home/specialkids/public_html ServerAdmin webmaster@specialkids.in.th UseCanonicalName Off ## User specialkids UserDir disabled UserDir enabled specialkids # 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 specialkids specialkids SuexecUserGroup specialkids specialkids RMode config RUidGid specialkids specialkids # For more information on MPM ITK, please read: # http://mpm-itk.sesse.net/ AssignUserID specialkids specialkids PassengerUser specialkids PassengerGroup specialkids ScriptAlias /cgi-bin/ /home/specialkids/public_html/cgi-bin/ SSLEngine on SSLCertificateFile /var/zesle/ssl/letsencrypt/specialkids.in.th/cert.pem SSLCertificateKeyFile /var/zesle/ssl/letsencrypt/specialkids.in.th/privkey.pem SSLCACertificateFile /var/zesle/ssl/letsencrypt/specialkids.in.th/chain.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/specialkids/specialkids.in.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