Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################################################################
- # Apache VHOST configuration file
- # Automatically generated by Sentora 1.0.3
- # Generated on: 12.08.2017 21:30:01
- #==== YOU MUST NOT EDIT THIS FILE : IT WILL BE OVERWRITTEN ====
- # Use Sentora Menu -> Admin -> Module Admin -> Apache config
- ################################################################
- Listen 443
- # Configuration for Sentora control panel.
- <VirtualHost *:443>
- ServerAdmin webmaster@DOMAIN.TLD
- DocumentRoot "/etc/sentora/panel/"
- ServerName SUB.DOMAIN.TLD
- ErrorLog "/var/sentora/logs/sentora-error.log"
- CustomLog "/var/sentora/logs/sentora-access.log" combined
- CustomLog "/var/sentora/logs/sentora-bandwidth.log" common
- AddType application/x-httpd-php .php
- <Directory "/etc/sentora/panel/">
- Options +FollowSymLinks -Indexes
- AllowOverride All
- Require all granted
- </Directory>
- # Custom settings are loaded below this line (if any exist)
- SSLEngine on
- SSLProtocol ALL -SSLv2 -SSLv3
- SSLHonorCipherOrder On
- SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
- SSLCertificateFile /etc/letsencrypt/live/SUB.DOMAIN.TLD/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/SUB.DOMAIN.TLD/privkey.pem
- SSLCertificateChainFile /etc/letsencrypt/live/SUB.DOMAIN.TLD/chain.pem
- # Keeping bellow for future upgrades.
- # Requires Apache >= 2.4
- SSLCompression off
- </VirtualHost>
- ################################################################
- # Sentora generated VHOST configurations below.....
- ################################################################
- # DOMAIN: DOMAIN.TLD
- <virtualhost *:443>
- ServerName DOMAIN.TLD
- ServerAlias www.DOMAIN.TLD
- ServerAdmin webmaster@DOMAIN.TLD
- DocumentRoot "/var/sentora/hostdata/zadmin/public_html/DOMAIN_TLD"
- php_admin_value open_basedir "/var/sentora/hostdata/zadmin/public_html/DOMAIN_TLD:/var/sentora/temp/"
- php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_termi$
- ErrorLog "/var/sentora/logs/domains/zadmin/DOMAIN.TLD-error.log"
- CustomLog "/var/sentora/logs/domains/zadmin/DOMAIN.TLD-access.log" combined
- CustomLog "/var/sentora/logs/domains/zadmin/DOMAIN.TLD-bandwidth.log" common
- <Directory "/var/sentora/hostdata/zadmin/public_html/DOMAIN_TLD">
- Options +FollowSymLinks -Indexes
- AllowOverride All
- Require all granted
- </Directory>
- AddType application/x-httpd-php .php3 .php
- ErrorDocument 404 /_errorpages/404.html
- ErrorDocument 510 /_errorpages/510.html
- ErrorDocument 500 /_errorpages/500.html
- ErrorDocument 403 /_errorpages/403.html
- DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
- # Custom Global Settings (if any exist)
- # Custom VH settings (if any exist)
- SSLEngine on
- SSLProtocol ALL -SSLv2 -SSLv3
- SSLHonorCipherOrder On
- SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
- SSLCertificateFile /etc/letsencrypt/live/DOMAIN.TLD/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/DOMAIN.TLD/privkey.pem
- SSLCertificateChainFile /etc/letsencrypt/live/DOMAIN.TLD/chain.pem
- # Keeping bellow for future upgrades.
- # Requires Apache >= 2.4
- SSLCompression off
- </virtualhost>
- # END DOMAIN: DOMAIN.TLD
- ################################################################
- # DOMAIN: DOMAIN.TLD
- # PORT FORWARD FROM 80 TO: 443
- <virtualhost *:80>
- ServerName DOMAIN.TLD
- ServerAlias www.DOMAIN.TLD
- ServerAdmin webmaster@DOMAIN.TLD
- RewriteEngine on
- ReWriteCond %{SERVER_PORT} !^443$
- RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
- </virtualhost>
- # END DOMAIN: DOMAIN.TLD
- # DOMAIN: dev.DOMAIN.TLD
- <virtualhost *:443>
- ServerName dev.DOMAIN.TLD
- ServerAdmin webmaster@DOMAIN.TLD
- DocumentRoot "/var/sentora/hostdata/zadmin/public_html/dev_DOMAIN_TLD"
- php_admin_value open_basedir "/var/sentora/hostdata/zadmin/public_html/dev_DOMAIN_TLD:/var/sentora/temp/"
- php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_termi$
- ErrorLog "/var/sentora/logs/domains/zadmin/dev.DOMAIN.TLD-error.log"
- CustomLog "/var/sentora/logs/domains/zadmin/dev.DOMAIN.TLD-access.log" combined
- CustomLog "/var/sentora/logs/domains/zadmin/dev.DOMAIN.TLD-bandwidth.log" common
- <Directory "/var/sentora/hostdata/zadmin/public_html/dev_DOMAIN_TLD">
- Options +FollowSymLinks -Indexes
- AllowOverride All
- Require all granted
- </Directory>
- AddType application/x-httpd-php .php3 .php
- DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
- # Custom Global Settings (if any exist)
- # Custom VH settings (if any exist)
- SSLEngine on
- SSLProtocol ALL -SSLv2 -SSLv3
- SSLHonorCipherOrder On
- SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
- SSLCertificateFile /etc/letsencrypt/live/dev.DOMAIN.TLD/cert.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/dev.DOMAIN.TLD/privkey.pem
- SSLCertificateChainFile /etc/letsencrypt/live/dev.DOMAIN.TLD/chain.pem
- # Keeping bellow for future upgrades.
- # Requires Apache >= 2.4
- SSLCompression off
- </virtualhost>
- # END DOMAIN: dev.DOMAIN.TLD
- ################################################################
- # DOMAIN: dev.DOMAIN.TLD
- # PORT FORWARD FROM 80 TO: 443
- <virtualhost *:80>
- ServerName dev.DOMAIN.TLD
- ServerAlias www.dev.DOMAIN.TLD
- ServerAdmin webmaster@DOMAIN.TLD
- RewriteEngine on
- ReWriteCond %{SERVER_PORT} !^443$
- RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
- </virtualhost>
- # END DOMAIN: dev.DOMAIN.TLD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement