我有這樣的nginx位置塊(從https://munin.readthedocs.io/en/2.0.8/example/webserver/nginx.html)PCRE ^〜符號中的nginx
location ^~ /munin-cgi/munin-cgi-graph/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-graph.sock;
include fastcgi_params;
}
好像nginx的使用PCRE。 ^的意思是「斷言從http://www.pcre.org/original/doc/html/pcrepattern.html開始的字符串(或行,多行模式)」,但我找不到〜的含義。
感謝
[同樣的問題在ServerFault](https://serverfault.com/questions/674425/what-does-location-mean-in-an-nginx-location-block)。 –