apify-library icon indicating copy to clipboard operation
apify-library copied to clipboard

Apify with Ngnix

Open karimtn opened this issue 13 years ago • 1 comments

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; } }

karimtn avatar Jul 12 '12 13:07 karimtn

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;
}

zoloft avatar Jan 04 '13 15:01 zoloft