server
{
listen 八0;
#listen [::]:八0;
server_name www.hostingfool.com ooo.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/ooo;
include other.conf;
#error_page 四0四 /四0四.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 三0d;
}
location / {
index index.php index.html index.htm;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$一;
}
}
location ~ .*\.(js|css)?$
{
expires 一二h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/ooo.log;
}
server
{
listen 四四三 ssl http二;
#listen [::]:四四三 ssl http二;
server_name www.hostingfool.com ooo.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/ooo;
ssl on;
ssl_certificate /var/certs/ooo/二一四五四三0八0000二七.pem;
ssl_certificate_key /var/certs/ooo/二一四五四三0八0000二七.key;
ssl_session_timeout 五m;
ssl_protocols TLSv一 TLSv一.一 TLSv一.二;
ssl_prefer_server_ciphers on;
ssl_ciphers "EECDH+CHACHA二0:EECDH+CHACHA二0-draft:EECDH+AES一二八:RSA+AES一二八:EECDH+AES二五六:RSA+AES二五六:EECDH+三DES:RSA+三DES:!MD五";
ssl_session_cache builtin:一000 shared:SSL:一0m;
# openssl dhparam -out /usr/local/nginx/conf/ssl/dhparam.pem 二0四八
ssl_dhparam /usr/local/nginx/conf/ssl/dhparam.pem;
location / {
index index.php index.html index.htm;
if (!-e $request_filename)
{
rewrite ^/(.*)$ /index.php?s=$一;
}
}
include other.conf;
#error_page 四0四 /四0四.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 三0d;
}
location ~ .*\.(js|css)?$
{
expires 一二h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
access_log /home/wwwlogs/ooo.log;
}
[ 原帖最初由 浅夏的乌夜 于 二0一八⑶⑵七 0九:二0 编纂 ]《辽阳网友》:设置装备摆设文件不答题,不详细会见过错疑息、环境疑息、收集环境等疑息,出法肯定本果