P
P
Pavel Busel2016-06-06 10:40:18
linux
Pavel Busel, 2016-06-06 10:40:18

How to set fastcgi_pass for a specific location?

There is the following config:

server {
    listen  80;
    server_name site.com;

    location / {
        proxy_pass      http://site.local/;
    }
}

You need to do the following: for the URL site.com/my-url/api.json, send a script to php that lies /var/www/script.my/index.php and that the script sees the URL site.com/my-url/api .json.
Can this be done in Jinx? When I set the root to the location, it adds the path of the location to the root, and the path to the script is not correct.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Андрей, 2016-06-06
@pro100Coder

тебе не локейшн, тебе реврайт нужен.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question