fedecarg / apify-library

Apify is a small open source library that delivers new levels of developer productivity by simplifying the creation of RESTful architectures. It helps development teams deliver quality web services and applications in reduced amounts of time. If you are familiar with the Zend Framework, then you already know how to use Apify.
http://www.apifydoc.com
Other
266 stars 49 forks source link

Apify with Ngnix #16

Open karimtn opened 11 years ago

karimtn commented 11 years ago

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

zoloft commented 11 years ago

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