Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2022
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2.  
  3. <VirtualHost 167.114.64.16:7081 >
  4. ServerName "no-gods-no-masters.com"
  5. ServerAlias "www.no-gods-no-masters.com"
  6. ServerAlias "ipv4.no-gods-no-masters.com"
  7. UseCanonicalName Off
  8.  
  9. DocumentRoot "/var/www/vhosts/no-gods-no-masters.com/public_html"
  10. CustomLog /var/www/vhosts/system/no-gods-no-masters.com/logs/access_ssl_log plesklog
  11. ErrorLog "/var/www/vhosts/system/no-gods-no-masters.com/logs/error_log"
  12.  
  13. <IfModule mod_suexec.c>
  14. SuexecUserGroup "shop2" "psacln"
  15. </IfModule>
  16.  
  17. <IfModule mod_userdir.c>
  18. UserDir "/var/www/vhosts/no-gods-no-masters.com/web_users/*"
  19. </IfModule>
  20.  
  21. <IfModule mod_sysenv.c>
  22. SetSysEnv PP_VHOST_ID "8c6c36e2-b36a-42f5-b45a-e84250e7afdd"
  23. </IfModule>
  24.  
  25. SSLEngine on
  26. SSLVerifyClient none
  27. SSLCertificateFile /usr/local/psa/var/certificates/scfTiX5wQ
  28. SSLCACertificateFile /usr/local/psa/var/certificates/scfJTHD2L
  29.  
  30. TimeOut 600
  31. <Directory /var/www/vhosts/no-gods-no-masters.com/public_html>
  32.  
  33. <IfModule mod_proxy_fcgi.c>
  34. <Files ~ (\.php$)>
  35. SetHandler proxy:unix:/var/www/vhosts/system/no-gods-no-masters.com/php-fpm.sock|fcgi://127.0.0.1:9000
  36. </Files>
  37. </IfModule>
  38.  
  39. SSLRequireSSL
  40.  
  41. Options -Includes -ExecCGI
  42.  
  43. </Directory>
  44.  
  45. Alias /error_docs /var/www/vhosts/no-gods-no-masters.com/error_docs
  46. ErrorDocument 400 /error_docs/bad_request.html
  47. ErrorDocument 401 /error_docs/unauthorized.html
  48. ErrorDocument 403 /error_docs/forbidden.html
  49. ErrorDocument 404 /error_docs/not_found.html
  50. ErrorDocument 500 /error_docs/internal_server_error.html
  51. ErrorDocument 405 /error_docs/method_not_allowed.html
  52. ErrorDocument 406 /error_docs/not_acceptable.html
  53. ErrorDocument 407 /error_docs/proxy_authentication_required.html
  54. ErrorDocument 412 /error_docs/precondition_failed.html
  55. ErrorDocument 414 /error_docs/request_uri_too_long.html
  56. ErrorDocument 415 /error_docs/unsupported_media_type.html
  57. ErrorDocument 501 /error_docs/not_implemented.html
  58. ErrorDocument 502 /error_docs/bad_gateway.html
  59. ErrorDocument 503 /error_docs/maintenance.html
  60.  
  61. DirectoryIndex "index.html" "index.cgi" "index.pl" "index.php" "index.xhtml" "index.htm" "index.shtml"
  62. <IfModule mod_rewrite.c>
  63. RewriteEngine On
  64. RewriteCond %{HTTP_HOST} ^no-gods-no-masters\.com$ [NC]
  65. RewriteRule ^(.*)$ https://www.no-gods-no-masters.com$1 [L,R=301]
  66. </IfModule>
  67.  
  68. Include "/var/www/vhosts/system/no-gods-no-masters.com/conf/vhost_ssl.conf"
  69.  
  70. <Directory /var/www/vhosts/no-gods-no-masters.com>
  71. AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,SymLinksIfOwnerMatch,MultiViews,FollowSymLinks,ExecCGI,Includes,IncludesNOEXEC
  72. </Directory>
  73.  
  74. #extension letsencrypt begin
  75. Alias /.well-known/acme-challenge "/var/www/vhosts/default/htdocs/.well-known/acme-challenge"
  76.  
  77. <Location /.well-known/acme-challenge/>
  78. # Require all granted
  79. Order Deny,Allow
  80. Allow from all
  81. Satisfy any
  82. </Location>
  83.  
  84. <LocationMatch "^/.well-known/acme-challenge/(.*/|)\.">
  85. # Require all denied
  86. Order Allow,Deny
  87. Deny from all
  88. </LocationMatch>
  89. #extension letsencrypt end
  90.  
  91. #extension sslit begin
  92.  
  93. #extension sslit end
  94.  
  95. #extension sectigo begin
  96. AliasMatch "^/.well-known/pki-validation/(?!fileauth.txt)$" "/var/www/vhosts/default/htdocs/.well-known/pki-validation/$1"
  97.  
  98. <Location /.well-known/pki-validation/>
  99. # Require all granted
  100. Order Deny,Allow
  101. Allow from all
  102. Satisfy any
  103. </Location>
  104.  
  105. <LocationMatch "^/.well-known/pki-validation/(.*/|)\.">
  106. # Require all denied
  107. Order Allow,Deny
  108. Deny from all
  109. </LocationMatch>
  110. #extension sectigo end
  111. </VirtualHost>
  112.  
  113. </IfModule>
  114.  
  115. <VirtualHost 167.114.64.16:7080 >
  116. ServerName "no-gods-no-masters.com"
  117. ServerAlias "www.no-gods-no-masters.com"
  118. ServerAlias "ipv4.no-gods-no-masters.com"
  119. UseCanonicalName Off
  120.  
  121. Include "/var/www/vhosts/system/no-gods-no-masters.com/conf/vhost.conf"
  122.  
  123. <IfModule mod_rewrite.c>
  124. RewriteEngine On
  125. RewriteCond %{HTTP_HOST} ^no-gods-no-masters\.com$ [NC]
  126. RewriteRule ^(.*)$ https://www.no-gods-no-masters.com$1 [L,R=301]
  127. </IfModule>
  128.  
  129. <IfModule mod_rewrite.c>
  130. RewriteEngine On
  131. RewriteCond %{HTTPS} off
  132. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,QSA]
  133. </IfModule>
  134. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement