We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1、 开启gzip压缩 gzip on; 2、 开启缓存
gzip on;
location ~* \.(jpg|jpeg|png|gif|ico|css|js)${ expires 30d; }
alias和root的区别
server { listen 80; server_name localhost; gzip_min_length 1k; gzip_buffers 4 16k; gzip_comp_level 5; gzip_types text/plain application/x-javascript text/css application/xml text/javascript application/x-httpd-php application/javascript; gzip on; #charset koi8-r; #access_log /var/log/nginx/host.access.log main; root /home/ubuntu/wx-render/dist; index index.html; location ~* \.(jpg|jpeg|png|gif|ico|css|js)${ expires 30d; } location /admin { root home/ubuntu/wx-server/bin; index www; proxy_pass http://127.0.0.1:3000; } }
相关资料1 相关资料2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
静态资源服务器
1、 开启gzip压缩
gzip on;
2、 开启缓存
反向代理
alias和root的区别
示例
相关资料1
相关资料2
The text was updated successfully, but these errors were encountered: