2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-05 02:04:27 +08:00
Files
panel/pkg/nginx/testdata/http.conf
2025-04-12 20:15:50 +08:00

26 lines
760 B
Plaintext

server {
listen 80;
server_name localhost;
index index.php index.html index.htm;
root /www/wwwroot/default;
# Error page configuration
error_page 404 /404.html;
include enable-php-0.conf;
# Do not log static files
location ~ .*\.(bmp|jpg|jpeg|png|gif|svg|ico|tiff|webp|avif|heif|heic|jxl)$ {
expires 30d;
access_log /dev/null;
error_log /dev/null;
}
location ~ .*\.(js|css|ttf|otf|woff|woff2|eot)$ {
expires 6h;
access_log /dev/null;
error_log /dev/null;
}
# Deny some sensitive directories
location ~ ^/(\.user.ini|\.htaccess|\.git|\.svn|\.env) {
return 404;
}
access_log /www/wwwlogs/default.log;
error_log /www/wwwlogs/default.log;
}