Uname:Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64

403WebShell
403Webshell
Server IP : 14.225.216.240  /  Your IP : 216.73.216.26
Web Server : nginx/1.20.1
System : Linux localhost.localdomain 5.14.0-596.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jun 27 16:02:33 UTC 2025 x86_64
User : taidh ( 1001)
PHP Version : 8.3.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/nginx/conf.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/nginx/conf.d/papacafe.vn.conf
#---------- PAPACAFE.VN ---------------#
server  {
	server_name papacafe.vn www.papacafe.vn;
	#access_log off;
    #error_log off;
    root /home/taidh/papacafe.vn;
    index index.php;
	
	set $skip_cache 0;

    # POST requests and URLs with a query string should always go to PHP
    if ($request_method = POST) {
        set $skip_cache 1;
    }   

    if ($query_string != "") {
        set $skip_cache 1;
    }   

    # Don't cache URIs containing the following segments
    if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") {
        set $skip_cache 1;
    }   

    # Don't use the cache for logged-in users or recent commenters
    if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") {
        set $skip_cache 1;
    }
 
    location / {
        try_files $uri $uri/ /index.php?$args ;
    }
	
	
	location ~ .php$ {
		
	fastcgi_pass   php-fpm;
        fastcgi_index  index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;
	client_body_timeout 5s;
	fastcgi_connect_timeout 60;
	fastcgi_send_timeout 3m;
	fastcgi_read_timeout 3m;
        client_max_body_size 100m;
	fastcgi_buffer_size 48k;
	fastcgi_buffers 256 4k;
	fastcgi_busy_buffers_size 256k;
	fastcgi_temp_file_write_size 256k;
	fastcgi_intercept_errors on;
    }

	location ~* \.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|css|rss|atom|js|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtfg)$ {
        expires max;
        log_not_found off;
    }
	
    location = /robots.txt {
        access_log off;
        log_not_found off;
    }


    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/papacafe.vn/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/papacafe.vn/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot


}
server  {
    if ($host = www.papacafe.vn) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    if ($host = papacafe.vn) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


	server_name papacafe.vn www.papacafe.vn;


    listen 80;
    return 404; # managed by Certbot




}

Youez - 2016 - github.com/yon3zu
LinuXploit