-
Notifications
You must be signed in to change notification settings - Fork 577
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
[Feature] nginx反代-次级目录配置以访问静态文件 #359
Comments
+1,之前试过这样反代没成功,暂时只能以三级域名的方式反代了。 |
Add `STATIC_URL_PREFIX` Environment Variables
设置STATIC_URL_PREFIX后还是无法实现二级反代
例如首页: |
之前没有验证更改就关闭问题了,今天重新尝试用子目录部署的时候发现正如楼上所说,不少页面的url并没有应用STATIC_URL_PREFIX设置的目录 最终实现的效果应该是,整个项目的根应该为设置的子目录,当设置了子目录为 |
供参考 |
Verify steps
Describe the Feature
当我用nginx反代qiandao到次级目录的时候,因为js和css等资源地址为根目录导致需要写多条nginx规则
Describe the solution
想以http://域名/qiandao,来访问使用
以下为nginx反代规则,希望项目的资源都是相对目录方便反代,或者增加config.py的次级目录设置
location /qiandao/ { proxy_pass http://127.0.0.1:8923/; }
Describe alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: