codeigniter separated apps on different paths nginx config |
Hi, guys!
I just want to install 3 separated CI applications on my nginx server. I'm new in nginx so I m not sure how to setup multiple codeigniter applications on one subdomain (or domain) with different paths. dev.domain.com/ -> 1. CI app dev.domain.com/admin -> 2. CI app dev.domain.com/api -> 3. CI app My folder structure is: /var/www/domain/domain.com/dev/web/ -> 1. CI app /var/www/domain/domain.com/dev/admin/ -> 2. CI app /var/www/domain/domain.com/dev/api/ -> 3. CI app Every of these folders contain one CI instance. Now I see content of .../dev/web/index.php on anything i put into address bar. (/, /index.php, /admin, /admin/index.php, /api, /api/index.php, /foo, /admin/foobar); I ll provide any other info which is needed. Thank you for any help. This is my current config. CI 4.1.0 nginx 1.14.1 PHP 7.4.6 Code: upstream domain-nginx {
|
Welcome Guest, Not a member yet? Register Sign In |