编辑vhost的conf文件
- server {
- listen 80;
- server_name nenew.net www.nenew.net;
- location / {
- proxy_pass http://localhost:1337;
- }
- }
这样就可以让Nginx反向代理本地端口运行的网站来共享Nginx的80端口了。
编辑vhost的conf文件
- server {
- listen 80;
- server_name nenew.net www.nenew.net;
- location / {
- proxy_pass http://localhost:1337;
- }
- }
这样就可以让Nginx反向代理本地端口运行的网站来共享Nginx的80端口了。