nginx
server {
listen 80;
listen [::]:80;
server_name admin.mallxos.com;
access_log off;
index index.html index.htm index.php;
root /data/wwwroot/admin-front-web/dist;
# include /usr/local/nginx/conf/rewrite/none.conf;
#error_page 404 /404.html;
#error_page 502 /502.html;
location / {
try_files $uri $uri/ /index.html;
}
location = /index.html {
add_header Cache-Control "no-cache, no-store";
}
location ~ [^/]\.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires 30d;
access_log off;
}
location ~ .*\.(js|css|html)?$ {
expires 7d;
access_log off;
}
location ~ /(\.user\.ini|\.git|\.svn|\.project|LICENSE|README\.md) {
deny all;
}
}