Answer the question
In order to leave comments, you need to log in
Setting up API (loopback) on the nginx server, how to properly deploy?
Good afternoon everyone.
There is a working api that lies on the server ssh://[email protected]:7777/home/git/api-1/
Tell me how to properly deploy the API to api.example.com/api-1/ and how to configure NGINX?
Answer the question
In order to leave comments, you need to log in
With nginx everything seems to be clear.
server {
listen 80;
access_log /home/example/logs/nginx.access.log;
server_name api.example.net;
location /api1 {
root /home/example/api/api1;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question