42 lines
821 B
Plaintext
42 lines
821 B
Plaintext
server
|
|
{
|
|
listen 80;
|
|
#listen 443 ssl;
|
|
#listen [::]:80;
|
|
server_name 0.0.0.0;
|
|
index index.html index.htm;
|
|
root /var/www/html;
|
|
# ssl on;
|
|
# ssl_certificate /usr/local/nginx/default/server.pem;
|
|
# ssl_certificate_key /usr/local/nginx/default/server.key;
|
|
|
|
#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;
|
|
# include rewrite.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 /var/www/logs/default.log;
|
|
}
|