Nginx配置反向代理

58 阅读1分钟

Nginx配置文件:

server {
        listen       80; 
        server_name  tomcat1.com;  域名,ip本机
        #charset koi8-r;
        #access_log  logs/host.access.log  main;
        location  / {
        proxy_pass   http://127.0.0.1:8280;   #本地服务端口
        index  index.html index.htm;
        }
    }

启动  Nginx:start Nginx