Advertisement
Guest User

Untitled

a guest
Apr 24th, 2021
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.29 KB | None | 0 0
  1. #=======================================================================#
  2. # Default Web Domain Template                                           #
  3. # DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
  4. #=======================================================================#
  5.  
  6. server {
  7.     listen      %ip%:%web_port%;
  8.     server_name %domain_idn% %alias_idn%;
  9.     root        %docroot%;
  10.     index       index.php index.html index.htm;
  11.     access_log  /var/log/nginx/domains/%domain%.log combined;
  12.     access_log  /var/log/nginx/domains/%domain%.bytes bytes;
  13.     error_log   /var/log/nginx/domains/%domain%.error.log error;
  14.  
  15.     include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
  16.  
  17.     location / {
  18.         rewrite ^(.*) https://%domain%$1 permanent;
  19.     }
  20.  
  21.     location /error/ {
  22.         alias   %home%/%user%/web/%domain%/document_errors/;
  23.     }
  24.  
  25.     location ~* "/\.(htaccess|htpasswd)$" {
  26.         deny    all;
  27.         return  404;
  28.     }
  29.  
  30.     location /vstats/ {
  31.         alias   %home%/%user%/web/%domain%/stats/;
  32.         include %home%/%user%/web/%domain%/stats/auth.conf*;
  33.     }
  34.  
  35.     include     /etc/nginx/conf.d/phpmyadmin.inc*;
  36.     include     /etc/nginx/conf.d/phppgadmin.inc*;
  37.     include     %home%/%user%/conf/web/%domain%/nginx.conf_*;
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement