社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
sudo vim image.jaydenmall.com.conf
server {
listen 80;
autoindex off;
server_name image.jaydenmall.com;
access_log /usr/local/nginx/logs/access.log combined;
index index.html index.htm index.jsp index.php;
#error_page 404 /404.html;
if ( $query_string ~* ".*[;'<>].*" ){
return 404;
}
location ~ /(mall_fe|mall_admin_fe)/dist/view/* {
deny all;
}
location / {
root /www/jaydenmall/;
add_header Access-Control-Allow-Origin *;
}
}
sudo ../../sbin/nginx -s reload
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!