%PDF- %PDF-
Mini Shell

Mini Shell

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

server {
        listen 10.27.27.5:443 ssl http2; 
        server_name loslex-demo.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 X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
    error_page 404 /index.php;


        location / {
                root   /www/loslex/demo/public;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:7083;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /www/loslex/demo/public$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:443 ssl http2;
        server_name loslex.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 X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
    error_page 404 /index.php;


        location / {
                root   /www/loslex/staging/public;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:7083;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /www/loslex/staging/public$fastcgi_script_name;
        }

}

server {
        listen 10.27.27.5:443 ssl http2;
        server_name www.loslex.cz;

        include ssl_params;
    ssl_certificate /etc/letsencrypt/live/loslex.cz/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/loslex.cz/privkey.pem; # managed by Certbot

     add_header X-Frame-Options "SAMEORIGIN";
     add_header X-Content-Type-Options "nosniff";
     error_page 404 /index.php;


         location / {
                 root   /www/loslex/production/public;
                 index  index.html index.htm index.php;
                 autoindex off;
                 autoindex_exact_size off;
                 try_files $uri $uri/ /index.php?$args;
         }
         location ~ \.php$ {
                 include fastcgi_params;
                 fastcgi_pass  127.0.0.1:7083;
                 fastcgi_index  index.php;
                 fastcgi_param  SCRIPT_FILENAME  /www/loslex/production/public$fastcgi_script_name;
         }


# PASS to backup
#location / {
#         proxy_pass https://135.125.235.107/;
#          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 test.loslex.cz;

        include ssl_params;
    ssl_certificate /etc/letsencrypt/live/test.loslex.cz/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/test.loslex.cz/privkey.pem; # managed by Certbot

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";
    error_page 404 /index.php;


        location / {
                root   /www/loslex/test/public;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
                try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:7083;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /www/loslex/test/public$fastcgi_script_name;
        }



}


server {
    listen 10.27.27.5:80;
    server_name  www.loslex.cz;
    rewrite ^/(.*) https://www.loslex.cz$request_uri permanent;
}

server {
    listen 10.27.27.5:80;
    server_name  loslex.cz;
    rewrite ^/(.*) https://www.loslex.cz$request_uri permanent;
}

server {
    if ($host = test.loslex.cz) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 10.27.27.5:80;
    server_name  test.loslex.cz;
    rewrite ^/(.*) https://test.loslex.cz$request_uri permanent;


}


server {
        listen 10.27.27.5:443 ssl http2;
        server_name loslex.cz;

        include ssl_params;
    ssl_certificate /etc/letsencrypt/live/loslex.cz/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/loslex.cz/privkey.pem; # managed by Certbot

    rewrite ^/(.*) https://www.loslex.cz$request_uri permanent;
}


server {
        listen 10.27.27.5:443 ssl http2;
        server_name tracker.loslex.cz;

        include ssl_params;
    ssl_certificate /etc/letsencrypt/live/tracker.loslex.cz/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/tracker.loslex.cz/privkey.pem; # managed by Certbot


        location / {
                root   /www/loslex/tracker;
                index  index.html index.htm index.php;
                autoindex off;
                autoindex_exact_size off;
                #try_files $uri $uri/ /index.php?$args;
        }
        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:9002;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /www/loslex/tracker$fastcgi_script_name;
        }



}

server {
    if ($host = tracker.loslex.cz) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 10.27.27.5:80;
    server_name  tracker.loslex.cz;
    rewrite ^/(.*) https://tracker.loslex.cz$request_uri permanent;


}

Zerion Mini Shell 1.0