The nginx deployment page cannot be accessed

nginx.conf configuration:

 server {
            listen       9111;
            server_name  localhost;

	        location / {
	            root	/home/3d;
		        #root	/usr/local/nginx/dist;
	            index	index.html;
	        }
     
            location = /50x.html {
                root   html;
            }

        }

Code configuration:

# 某某管理平台/生产环境
VUE_APP_BASE_API = 'http://127.0.0.1:9111/api'

#3D路径地址
VUE_APP_3D_API = 'http://127.0.0.1:9111/3d'

The port 9111 is configured in the code, and the listening port configured in nginx must be consistent with the port configured in the code to access

Guess you like

Origin blog.csdn.net/Tom_sensen/article/details/112003194
Recommended