How to configure NGINX for codeigniter and laravel on same domain
问题 I need to configure nginx for different location on same domain for two php frameworks. example.com/ - codeigniter (root /var/www/html/codeigniter) example.com/api - laravel 5.2 (root /var/www/html/laravel) here my examples, but they not work. server { listen 80; server_name example.com www.example.com; root /var/www/html/codeigniter; index index.php; location / { try_files $uri $uri/ /index.php; } location ~ \.php$ { try_files $uri /index.php =404; fastcgi_split_path_info ^(.+\.php)(/.+)$;