时间:2021-07-01 10:21:17 帮助过:4人阅读
server { listen 80; server_name localhost; server_name_in_redirect off; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header REMOTE-HOST $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; location / { proxy_pass http://127.0.0.1:8080/; } location /group1/M00 { alias /data/images/data; ngx_fastdfs_module; } }
以上就介绍了Nginx配置多个项目使用同一端口号的办法,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。