Closed Disane87 closed 6 years ago
Your rewrite points to the wrong location. The sample in the docs assumes that api.php is located inside the root directory. It should be something like:
location /homeautomation/api/ {
fastcgi_index api.php;
rewrite ^/api(.*)$ /homeautomation/api/api.php$1 last;
}
Hey man,
since I'm experimenting with microcontroller, I switched to nginx to pusch the performance of you api (because I need every ms to save battery life of my controllers).
I followed your nginx example and got it working without rewriting the url. The rewritten call wont work and I dont know why.
My nginx conf:
Error on error.log:
My directory structure:
Could you please assists me to get that fixed? :/