All URL are pointing to root instead we need a project folder

扶醉桌前 提交于 2019-12-11 11:41:59

问题


I am new to node and gulp I create a project and its working fine but I am facing an issue when i am hosting my project on some web server (tomcat). All URL are pointing to root instead we need a project folder

Please guide me what i am missing

currently : http://localhost:8000/
I need something like this : http://localhost:8000/projectName/

回答1:


I've done this on applications where I have one application that essentially builds another application. They are tightly coupled in my case so I created a single repository in git for both projects.

For your case, if its only a single app & only a routing issue, I would configure apache or HAProxy to redirect http://localhost:8000/ to http://localhost:8000/projectName. I have only done this in nginx & HAProxy but it should be easy enough with other setups. This tutorial might help.



来源:https://stackoverflow.com/questions/29004490/all-url-are-pointing-to-root-instead-we-need-a-project-folder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!