我已经使用index.php文件设置了多个公共路径,我想使用它们比较不同的框架(laravel,lumen,diy,vanilla php)
C:/temp/dev/import/benchmark/laravel/public/index.php
C:/temp/dev/import/benchmark/lumen/public/index.php
C:/temp/dev/import/benchmark/diy/public/index.php
C:/temp/dev/import/benchmark/php/public/index.php
我希望可以通过以下路线访问它们:
http://localhost/laravel
http://localhost/lumen
http://localhost/diy
http://localhost/php
我尝试过这样的规则:
location /php/ {
rewrite ^(.*)$ "C:/temp/dev/import/benchmark/php/public/index.php";
}
但这只能给我404