apify-library
apify-library copied to clipboard
Apify with Ngnix
Any one can tell me how i can make Apify working with Ngnix ?
This is my Ngnix config file :
nginx configuration
location /api/ { if (!-e $request_filename){ rewrite ^/api/(.*)$ /api/api/index.php break; } }
According to nginx - IfIsEvil you should drop the if configuration and configure nginx with something like:
location /api/ {
root /your/path/to/apify/public;
try_files $uri $uri/ /index.php?$query_string;
}