Home
Sign Up
Sign In
V2EX
›
问与答
求指点:能不能通过 nginx 判断 url 参数,返回不同页面
lightryanking
·
Mar 7, 2015
· 5533 views
This topic created in 4118 days ago, the information mentioned may be changed or developed.
比如url里面如果没有XXX参数就会返回500错误或者404
如果有XXX参数就会正常显示页面
顺便厚着脸皮求代码。。。
参数
URL
Nginx
3 replies
1
chon
Mar 7, 2015
这个不应该是由后端程序判断的么?
2
jybox
Mar 7, 2015
2
http://nginx.org/en/docs/http/ngx_http_core_module.html#variables
http://nginx.org/en/docs/http/ngx_http_rewrite_module.html#if
3
kn007
Mar 8, 2015
1
location ~ 正则匹配
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
3157 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms ·
UTC 14:25
·
PVG 22:25
·
LAX 07:25
·
JFK 10:25
♥ Do have faith in what you're doing.
❯