Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将该 apache 规则转换为 nginx 规则?
RewriteRule ^/rss/(.+).xml$ /rss.php?email=$1 [P,L,QSA]
谢谢。
改动不大,试试这个
rewrite ^/rss/(.+).xml$ /rss.php?email=$1&$args last;
该[ p ]标志表示“代理”我不知道您是否真的是这个意思,因为您正在代理到同一台服务器和同一台 apache 服务器,所以我忽略了它。
[ p ]