Skip to content
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

Update nginx.conf #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update nginx.conf #5

wants to merge 1 commit into from

Conversation

qiurigao
Copy link

@qiurigao qiurigao commented Sep 1, 2024

解决Nginx静态资源响应POST请求,返回405状态码

解决Nginx静态资源响应POST请求,返回405状态码
@jshensh
Copy link
Owner

jshensh commented Sep 1, 2024

可以提供一下具体 nginx 版本号么,我复现一下看看

@qiurigao
Copy link
Author

qiurigao commented Sep 7, 2024

https://blog.csdn.net/guo_qiangqiang/article/details/90177327按他的办法搞定了。
我指的是thisSite中的静态资源,并非originSite里的。
另外该项目是否与去除php后缀的伪静态不兼容,尝试各种方案都不行,有的直接返回php源码
location / {
try_files $uri $uri/ $uri.php$is_args$args;
}

@jshensh
Copy link
Owner

jshensh commented Sep 7, 2024

https://blog.csdn.net/guo_qiangqiang/article/details/90177327按他的办法搞定了。 我指的是thisSite中的静态资源,并非originSite里的。 另外该项目是否与去除php后缀的伪静态不兼容,尝试各种方案都不行,有的直接返回php源码 location / { try_files $uri $uri/ $uri.php$is_args$args; }

道理我都懂,但为什么要向静态资源发送 post 请求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants