%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /etc/nginx/sites-enabled/
Upload File :
Create Path :
Current File : //etc/nginx/sites-enabled/waritko-tools

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  tbc.varak.net;

        location / {
                root   /www/varak.net/tbc.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/tbc.varak.net$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name tbc.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


                location / {
                root   /www/varak.net/tbc.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/tbc.varak.net$fastcgi_script_name;
        }

}

server {
	listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
	server_name  havranipapuce.varak.net;
	rewrite ^/(.*) https://havranipapuce.varak.net$request_uri permanent;
}
server {
	listen 10.27.27.5:443 ssl http2; 
	server_name havranipapuce.varak.net;
	
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

	root   /www/varak.net/havranipapuce.varak.net;

location / {
                index index.php;
                try_files $uri $uri/ @rewrite;
        }

        location @rewrite {
                rewrite ^/(.*)$ /index.php?title=$1&$args;
        }

        location ^~ /maintenance/ {
                return 403;
        }

        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                try_files $uri /index.php;
                expires max;
                log_not_found off;
        }

        location = /_.gif {
                expires max;
                empty_gif;
        }

        location ^~ /cache/ {
                deny all;
        }
	location ~ \.php$ {
		include fastcgi_params;
		fastcgi_pass  127.0.0.1:9000;
		fastcgi_index  index.php;
		fastcgi_param  SCRIPT_FILENAME    /www/varak.net/havranipapuce.varak.net$fastcgi_script_name;
	}

}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  ingress.varak.net;

	chunked_transfer_encoding off;
        location / {
                root   /www/varak.net/ingress.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/ingress.varak.net$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name ingress.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


                location / {
                root   /www/varak.net/ingress.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/ingress.varak.net$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  catalog.varak.net;
	client_max_body_size 50m;
        location / {
                root   /www/varak.net/catalog.varak.net/www;
		  auth_basic "Waritko Book Catalog";
		  auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
                index  index.html index.htm index.php;
                autoindex off;
		  try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/catalog.varak.net/www$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name catalog.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

	client_max_body_size 50m;
                location / {
                root   /www/varak.net/catalog.varak.net/www;
		  auth_basic "Waritko Book Catalog";
		  auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/catalog.varak.net/www$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name catalog.varak.cloud;

        include ssl_params;
        ssl_certificate /etc/certificates/varak.cloud.pem;
        ssl_certificate_key /etc/certificates/varak.cloud.key;

        client_max_body_size 50m;
                location / { 
                root   /www/varak.net/catalog.varak.net/www;
#                  auth_basic "Waritko Book Catalog";
#                  auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/catalog.varak.net/www$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:80; 
        server_name catalog.varak.cloud;

#        include ssl_params;
#        ssl_certificate /etc/certificates/varak.cloud.pem;
#        ssl_certificate_key /etc/certificates/varak.cloud.key;

        client_max_body_size 50m;
                location / {
                root   /www/varak.net/catalog.varak.net/www;
                  auth_basic "Waritko Book Catalog";
                  auth_basic_user_file /www/varak.net/catalog.varak.net/.passwd;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/catalog.varak.net/www$fastcgi_script_name;
        }

}


server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  broot.varak.net;

        location / {
                root   /www/varak.net/broot.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size on;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/broot.varak.net$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name broot.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


                location / {
                root   /www/varak.net/broot.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size on;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/broot.varak.net$fastcgi_script_name;
        }

}

# ingress 2
server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  ingress2.varak.net;
#	client_max_body_size 50m;
        location / {
                root   /www/beerApi/www;
                index  index.html index.htm index.php;
                autoindex off;
		  try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/beerApi/www$fastcgi_script_name;
        }
}

server {
        listen 10.27.27.5:443 ssl http2;  ## listen for ipv4
        server_name  ingress2.varak.net;
	
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

#	client_max_body_size 50m;
        location / {
                root   /www/beerApi/www;
                index  index.html index.htm index.php;
                autoindex off;
		try_files $uri $uri/ /index.php?$args;
		
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/beerApi/www$fastcgi_script_name;
		fastcgi_param HTTPS                 on;
		fastcgi_param SSL_PROTOCOL          $ssl_protocol;
		fastcgi_param SSL_CIPHER            $ssl_cipher;
		fastcgi_param SSL_SESSION_ID        $ssl_session_id;
		fastcgi_param SSL_CLIENT_VERIFY     $ssl_client_verify;
        }

}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  povidky.varak.net;
	client_max_body_size 50m;
        location / {
                root   /www/varak.net/povidky.varak.net/www;
                index  index.html index.htm index.php;
                autoindex off;
		  try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/povidky.varak.net/www$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name povidky.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

	client_max_body_size 50m;
                location / {
                root   /www/varak.net/povidky.varak.net/www;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/povidky.varak.net/www$fastcgi_script_name;
        }

}

server {
    listen 10.27.27.5:80; 
    server_name  stash.varak.net;
    rewrite ^/(.*) https://stash.varak.net$request_uri permanent;
}

server {
	listen 10.27.27.5:443 ssl http2; 
	server_name  stash.varak.net;
	location / {
      	  proxy_pass http://localhost:7990;
          proxy_set_header Host $host;
	  proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
          proxy_redirect      off;
	
        }  
	
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem;

 # managed by Certbot
}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  wiki.varak.net;
        rewrite ^/(.*) https://wiki.varak.net$request_uri permanent;

#	root   /www/varak.net/wiki.varak.net;	
#	
#	location / {
#                try_files $uri $uri/ @dk;
#                rewrite ^/$ /doku.php last;
#        }
#
#        location @dk {
#                rewrite ^/(.*) /doku.php?id=$1 last;
#        }
#
#        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
#        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
#        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
#
#        location ~ \.php$ {
#                include fastcgi_params;
#                fastcgi_pass  127.0.0.1:9000;
#                fastcgi_index  index.php;
#                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/wiki.varak.net$fastcgi_script_name;
#        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name wiki.varak.net;
	root   /www/varak.net/wiki.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

	
	location / {
		index index.php;
                try_files $uri $uri/ @rewrite;
        }
 
        location @rewrite {
                rewrite ^/(.*)$ /index.php?title=$1&$args;
        }
 
        location ^~ /maintenance/ {
                return 403;
        }
 
        location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
                try_files $uri /index.php;
                expires max;
                log_not_found off;
        }
 
        location = /_.gif {
                expires max;
                empty_gif;
        }
 
        location ^~ /cache/ {
                deny all;
        }
	
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/wiki.varak.net$fastcgi_script_name;
		fastcgi_param HTTPS on;
        }

}

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name wiki2.varak.net;
	root   /www/varak.net/wiki2.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


	location / {
                try_files $uri $uri/ @dk;
                rewrite ^/$ /doku.php last;
        }

        location @dk {
                rewrite ^/(.*) /doku.php?id=$1 last;
        }

        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
	
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/wiki2.varak.net$fastcgi_script_name;
		fastcgi_param HTTPS on;
        }

}

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name recepty.varak.net;
	root   /www/varak.net/recepty.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


	location / {
                try_files $uri $uri/ @dk;
                rewrite ^/$ /doku.php last;
        }

        location @dk {
                rewrite ^/(.*) /doku.php?id=$1 last;
        }

        location ~ /(conf|bin|inc|vendor)/ {
                deny all;
        }
    
        location ~ /data/ {
                internal;
        }

        rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
        rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
        rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
	
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/recepty.varak.net$fastcgi_script_name;
		fastcgi_param HTTPS on;
        }

}

server {
    listen 10.27.27.5:80; 
    server_name  recepty.varak.net;
    rewrite ^/(.*) https://recepty.varak.net$request_uri permanent;
}

server {
    listen 10.27.27.5:80; 
    server_name  mail.varak.net;
    rewrite ^/(.*) https://mail.varak.net$request_uri permanent;
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name mail.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot
	
	client_max_body_size 50m;
                location / {
                root   /www/varak.net/mail.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/mail.varak.net$fastcgi_script_name;
        }

}

server {
    listen 10.27.27.5:80; 
    server_name  mail.muzikoterapie.art;
    rewrite ^/(.*) https://mail.muzikoterapie.art$request_uri permanent;
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name mail.muzikoterapie.art;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/mail.muzikoterapie.art/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/mail.muzikoterapie.art/privkey.pem; # managed by Certbot
    
    client_max_body_size 50m;
                location / {
                root   /www/varak.net/mail.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/mail.varak.net$fastcgi_script_name;
        }


}

server {
    listen 10.27.27.5:80;
    server_name  dmarc.varak.net;
    rewrite ^/(.*) https://dmarc.varak.net$request_uri permanent;
}
server {
        listen 10.27.27.5:443 ssl http2;
        server_name dmarc.varak.net;

    include ssl_params;
ssl_certificate /etc/letsencrypt/live/dmarc.varak.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/dmarc.varak.net/privkey.pem; # managed by Certbot

    client_max_body_size 50m;
                location / {
                root   /www/varak.net/dmarc.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:7083;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/dmarc.varak.net$fastcgi_script_name;
        }


}

server {
    listen 10.27.27.5:80; 
    server_name  varak.net-0001;
    rewrite ^/(.*) https://varak.net-0001$request_uri permanent;
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name varak.net-0001;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot
	
	client_max_body_size 50m;
                location / {
                root   /www/varak.net/varak.net-0001;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/varak.net-0001$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  hdwimch.varak.net;
        location / {
                root   /www/varak.net/hdwimch.varak.net/www;
                index  index.html index.htm index.php;
                autoindex off;
                  try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/hdwimch.varak.net/www$fastcgi_script_name;
        }
}

# server {
#         listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
#         server_name  awstats.varak.net;
#         client_max_body_size 50m;
#         location / {
#                 root   /www/varak.net/awstats.varak.net;
#                 index  index.html index.htm index.php;
#                 autoindex off;
#         }

# 	# Static awstats files: HTML files stored in DOCUMENT_ROOT/awstats/
# 	location /awstats/classes/ {
# 		alias /home/waritko/awstats/wwwroot/classes/;
# 	}

# 	location /awstats/css/ {
# 		alias /home/waritko/awstats/wwwroot/css/;
# 	}

# 	location /awstats/icon/ {
# 		alias /home/waritko/awstats/wwwroot/icon/;
# 	}

# 	location /awstats-icon/ {
#         alias /home/waritko/awstats/wwwroot/icon/;
#     	}

# 	location /awstats/js/ {
# 		alias /home/waritko/awstats/wwwroot/js/;
# 	}

#         location ~ \.php$ {
#                 include fastcgi_params;
#                 fastcgi_pass  127.0.0.1:9000;
#                 fastcgi_index  index.php;
#                 fastcgi_param  SCRIPT_FILENAME    /www/varak.net/awstats.varak.net$fastcgi_script_name;
#         }
# }

# server {
#         listen 10.27.27.5:443 ssl http2;  ## listen for ipv4
#         server_name  awstats.varak.net;
#         include ssl_params;
# ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
# ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot
#         client_max_body_size 50m;
#         location / {
#                 root   /www/varak.net/awstats.varak.net;
#                 index  index.html index.htm index.php;
#                 autoindex off;
#         }

# 	# Static awstats files: HTML files stored in DOCUMENT_ROOT/awstats/
# 	location /awstats/classes/ {
# 		alias /home/waritko/awstats/wwwroot/classes/;
# 	}

# 	location /awstats/css/ {
# 		alias /home/waritko/awstats/wwwroot/css/;
# 	}

# 	location /awstats/icon/ {
# 		alias /home/waritko/awstats/wwwroot/icon/;
# 	}

# 	location /awstats-icon/ {
#         alias /home/waritko/awstats/wwwroot/icon/;
#     	}

# 	location /awstats/js/ {
# 		alias /home/waritko/awstats/wwwroot/js/;
# 	}

#         location ~ \.php$ {
#                 include fastcgi_params;
#                 fastcgi_pass  127.0.0.1:9000;
#                 fastcgi_index  index.php;
#                 fastcgi_param  SCRIPT_FILENAME    /www/varak.net/awstats.varak.net$fastcgi_script_name;
#         }

# }

server {
    listen 10.27.27.5:80; 
    server_name  fotogalerie.varak.net;
    rewrite ^/(.*) https://fotogalerie.varak.net$request_uri permanent;
}

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name fotogalerie.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot


                location / {
                root   /www/varak.net/fotogalerie.varak.net;
                index  index.html index.htm index.php;
                                autoindex off;
                autoindex_exact_size off;

if (-f $request_filename) {
    expires max;
    break;
  }
  if (!-e $request_filename) {
    rewrite ^/(.+)$ /index.php?kohana_uri=$1 last;
  }
		
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/fotogalerie.varak.net$fastcgi_script_name;
        }

}

server {
    listen 10.27.27.5:80; 
    server_name  hackhistory.varak.net;
    location / {
          proxy_pass http://localhost:8080;
          proxy_set_header Host $host;
          proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
          proxy_redirect      off;
    
        }
}

server {
    listen 10.27.27.5:443 ssl http2; 
    server_name  hackhistory.varak.net;
    location / {
          proxy_pass http://localhost:8080;
          proxy_set_header Host $host;
          proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
          proxy_redirect      off;
    
        }  
    
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem;

 # managed by Certbot
}

server {
    listen 10.27.27.5:80; 
    server_name  subsonic.varak.net;
    rewrite ^/(.*) https://subsonic.varak.net$request_uri permanent;
}

server {
    listen 10.27.27.5:443 ssl http2; 
    server_name  subsonic.varak.net;
    location / {
          proxy_pass http://127.0.0.1:9480;
          proxy_set_header Host $host;
          proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
	  #proxy_set_header    Range "";
          proxy_redirect      off;
    
        }  
    
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem;

 # managed by Certbot
}

server {
    listen 10.27.27.5:80; 
    server_name  audio.varak.net;
    rewrite ^/(.*) https://audio.varak.net$request_uri permanent;
}

server {
    listen 10.27.27.5:443 ssl http2; 
    server_name  audio.varak.net;
    location / {
          proxy_pass http://127.0.0.1:9481;
          proxy_set_header Host $host;
          proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
          #proxy_set_header    Range "";
          proxy_redirect      off;

        }

    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem;

 # managed by Certbot
}


server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  mydlo.varak.net;
	client_max_body_size 50m;
        location / {
                root   /www/varak.net/mydlo.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/mydlo.varak.net$fastcgi_script_name;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name mydlo.varak.net;
        
    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot

	client_max_body_size 50m;
                location / {
                root   /www/varak.net/mydlo.varak.net;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/varak.net/mydlo.varak.net$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
        server_name  cdn.varak.net;
	add_header 'Access-Control-Allow-Origin' '*';

        location / {
                root   /www/varak.net/cdn.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
        }
}
server {
        listen 10.27.27.5:443 ssl http2; 
        server_name cdn.varak.net;

    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem; # managed by Certbot
		add_header 'Access-Control-Allow-Origin' '*';


                location / {
                root   /www/varak.net/cdn.varak.net;
                index  index.html index.htm index.php;
                autoindex on;
                autoindex_exact_size off;
        }

}

# IMAGEHOST
server {
    listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
    server_name  filomenes.servepics.com;
    client_max_body_size 50m;
    root   /www/imagehost;
    index  index.html index.htm index.php;
    location / {
#        if (!-e $request_filename){
#            rewrite ^(.*)$ /index.php?page=$1 break;
#        }
        try_files $uri $uri/ @router;
    }
    location ~ \.php$ {
            include fastcgi_params;
            fastcgi_pass  127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME    /www/imagehost$fastcgi_script_name;
    }
    location @router {
        rewrite ^(.*)$ /index.php?page=$1;
    }
}

server {
    listen 10.27.27.5:80; 
    server_name  elasticsearch.varak.net;
    rewrite ^/(.*) https://elasticsearch.varak.net$request_uri permanent;
}

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name  elasticsearch.varak.net;
        location / {
          proxy_pass http://localhost:9200;
          proxy_set_header Host $host;
          proxy_set_header    X-Forwarded-Host $host;
          proxy_set_header    X-Forwarded-Server $host;
          proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
          proxy_set_header    X-Real-IP $remote_addr;
          proxy_redirect      off;
        }

    include ssl_params;
ssl_certificate /etc/letsencrypt/live/varak.net-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/varak.net-0001/privkey.pem;

 # managed by Certbot
}


Zerion Mini Shell 1.0