-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
网站根目录设置的问题 #7
Comments
|
比如你在 |
我的意思是,全网站都加上一个相对路径。 |
明白了。其实就是想弄成二级目录。moredoc是前后端分离的,前端用的nuxt框架,可以通过修改 nuxt.config.js 中的配置来调整实现 |
是的,是这样一个需求。如果已经支持的话,可以修改一下使用文档,公开一下配置方法。 |
直接在nginx上通过域名来转发,不就可以了嘛 |
你的意思是这个回答中的配置形式么? 但我们一般配置的时候是下面这种形式:
在一台WebServer(Nginx)上配置多个服务的时候最简便的是这种形式。location后面的app1就是一段二级目录。 |
现在网站启动后的路径形式为
http://IP:8880
没有网站根目录,这样的话,如果部署在一个有多个子网站的nginx上的话设置子路径会非常麻烦,能否追加一段网站根目录的设置?
比如
http://IP:8880/moredoc
The text was updated successfully, but these errors were encountered: