Nginx配置

server {    
    listen 3000;    
    server_name  localhost;    
    gzip on;    
    gzip_min_length 100;    
    gzip_types text/plain text/css application/xml application/javascript;    
    gzip_vary on;   
    location / {        
        root   /home/jshERP/jshERP-web;        
        index  index.html index.htm;        
        try_files $uri $uri/ /index.html;    
    }    

    location /jshERP-boot/ {        
        proxy_pass http://localhost:9999/jshERP-boot/;        
        proxy_set_header Host $host:$server_port;   
    }    
}

 

posted @ 2025-07-05 21:23  热心市民~菜先生  阅读(7)  评论(0)    收藏  举报