Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx cakephp run subfolder

$
0
0
I am using cakephp + winNMP (nginx+mariadb+php), I have successfully run the web on nginx. http://localhost I want to run a similar cakephp code in a subdirectory. eg: http://localhost/subfolder My directory structure is :

link image Is config nginx :

root "c:/winnmp/www/huyquangltd";
autoindex on;
location ~ \.php$ {
#try_files $uri =404;
include nginx.fastcgi.conf;
include nginx.redis.conf;
fastcgi_pass php_farm;
fastcgi_hide_header X-Powered-By;
}

location / {
try_files $uri $uri/ /index.php?$args;
}
http://localhost/ <-- ok
http://localhost/subfolder <-- not ok

Please help me or have any ideas!

Thank you

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>