< server
{
listen 8881;
#listen [::]:80;
server_name 192.168.1.238 ;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/mt/public;
location / {
fastcgi_param PHP_ADMIN_VALUE "open_basedir=/home/wwwroot/mt:/tmp/:/proc/";
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?s=/$1 last;
}
}
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
include enable-php.conf;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/onecard.log;
}
>