location ~ (^/test$|test.php$) { rewrite ^/(^/test$) /$1.php last; include fastcgi.conf; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; }
這樣訪問test時實際訪問的是test.php。
location ~ (^/test$|test.php$) { rewrite ^/(^/test$) /$1.php last; include fastcgi.conf; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; }
這樣訪問test時實際訪問的是test.php。
在上一篇文章部署好了ELK環境,接下來進行nginx日誌的收集 環境 192.168.2.112 jdk/elasticsearch/kibana CentOS release 6.5 192.168