| Server IP : 14.225.204.176 / Your IP : 216.73.216.198 Web Server : nginx/1.24.0 System : Linux nodejs-ybgk 6.8.0-40-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 10:34:03 UTC 2024 x86_64 User : root ( 0) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/db/ |
Upload File : |
server {
server_name www.happyworldacademy.edu.vn;
return 301 $scheme://happyworldacademy.edu.vn$request_uri;
}
server {
server_name happyworldacademy.edu.vn;
client_max_body_size 100m;
client_body_timeout 120;
access_log off;
#access_log /var/log/nginx/happyworldacademy.edu.vn.log;
error_log /var/log/nginx/happyworldacademy.edu.vn-error error;
root /var/www/html/php/happy-world;
index index.php index.html;
location ~* ^/?wp-content/themes/.*\.(jpg|jpeg|png|gif|ico|css|js|svg|woff2|ttf|mp3)$ {
expires 365d;
}
location ~* ^/?wp-content/uploads/.*\.(jpg|jpeg|png|gif|ico|css|js|svg|woff2|ttf|mp3)$ {
expires 30d;
}
location ~* ^/?wp-content/plugins/.*\.(jpg|jpeg|png|gif|ico|css|js|svg|woff2|ttf|mp3)$ {
expires 30d;
}
### root directory ###
location / {
try_files $uri $uri/ /index.php?$args;
}
# WebP Express rules
### security ###
error_page 403 =404;
location ~ /\. { access_log off; log_not_found off; deny all; }
location ~ ~$ { access_log off; log_not_found off; deny all; }
#location ~* config_inc.php { deny all; }
location ~* ^/wp-content/uploads/.*.(html|htm|shtml|php)$ {
types { }
default_type text/plain;
}
### disable logging ###
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
### caches ###
#include caches.conf;
### php block ###
location ~ \.php?$ {
root /var/www/html/php/happy-world;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_buffer_size 512k;
fastcgi_buffers 512 64k;
fastcgi_read_timeout 600;
#Prevent version info leakage
fastcgi_hide_header X-Powered-By;
}
gzip on;
gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint application/x-shockwave-flash image/tiff application/x-font-ttf audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel;
}