Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx in subfolder #19

Open
zadro opened this issue Aug 8, 2017 · 0 comments
Open

Nginx in subfolder #19

zadro opened this issue Aug 8, 2017 · 0 comments
Labels

Comments

@zadro
Copy link

zadro commented Aug 8, 2017

Racking my brain on getting this to work. I have have a WP install and other things in /home/site/www and trying to install CI in /home/site/www/api

Keep getting 404 errors. Thoughts?

nginx conf below. Thanks!

        location /api {
                root /home/site/www/api/public;
                index index.php;
                try_files $uri $uri/ /index.php?$args;

                location ~ \.php$ {
                        try_files $uri =404;
                        include fastcgi_params;
                        fastcgi_param SCRIPT_FILENAME $request_filename;
                        fastcgi_split_path_info ^(.+\.php)(/.+)$;
                        fastcgi_pass unix:/var/run/php_fpm.sock;
                }
        }
@zadro zadro changed the title Nginx is subfolder Nginx in subfolder Aug 8, 2017
@kenjis kenjis added the question label Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants