<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 19, 2014 at 12:47 PM, Adie Nurahmadie <span dir="ltr"><<a href="mailto:nurahmadie@gmail.com" target="_blank">nurahmadie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>Your location regex wont accept <span style="font-size:13px;font-family:arial,sans-serif">/var/www_opennote/Service/</span><span style="font-size:13px;font-family:arial,sans-serif">service.php/config/index.html</span></div></div></blockquote><div>oops, I was meant to type: your location regex wont accept: <span style="font-family:arial,sans-serif;font-size:13px">Service/service.php/config/</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:13px;font-family:arial,sans-serif">change it to:</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">location ~ </span><span style="font-family:arial,sans-serif;font-size:13px">^(.+\.php)(/.+)$</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"># the last `$` doesn't really do much in this pattern</span><br></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span>And try changing fastcgi_params with fastcgi.conf, since fastcgi_params doesn't set SCRIPT_FILENAME in it.</div><div>also you may want to set PATH_INFO param.</div><div><br></div><div>ref: <a href="http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info" target="_blank">http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info</a><br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Sun, Oct 19, 2014 at 12:18 PM, killer1337 <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi everybody,<br>
I am trying to set up a web app called opennote on my nginx server but<br>
somehow it doesn't work. When I call the page the error log shows:<br>
<br>
2014/10/16 13:12:39 [error] 21400#0: *11<br>
"/var/www_opennote/Service/service.php/config/index.html" is not found (20:<br>
Not a directory), client: 192.168.217.41, server: , request: "GET<br>
/Service/service.php/config/ HTTP/1.1", host: "<a href="http://192.168.217.201:444" target="_blank">192.168.217.201:444</a>",<br>
referrer: "<a href="https://192.168.217.201:444/" target="_blank">https://192.168.217.201:444/</a>"<br>
<br>
According to the developer of the app the problem appears to be that ngix is<br>
adding the index.html to Service/service.php/config/<br>
<br>
So the application is requesting Service/service.php/config/index.html when<br>
it should be requesting Service/service.php/config/.<br>
<br>
I already tried to add<br>
<br>
location / {<br>
autoindex off;<br>
}<br>
<br>
to my config but it didn't help.<br>
<br>
My nginx config is:<br>
<br>
server {<br>
listen 444 ssl;<br>
ssl_certificate bla.crt;<br>
ssl_certificate_key bla.key;<br>
set $root_path "/var/www_opennote";<br>
root $root_path;<br>
set $socket<br>
"unix:/var/run/fpm-00796029-695b-475a-a87c-f2b25af36486.sock";<br>
location ~ \.php$ {<br>
fastcgi_split_path_info ^(.+\.php)(/.+)$;<br>
fastcgi_pass $socket;<br>
fastcgi_index index.php;<br>
include fastcgi_params;<br>
}<br>
access_log<br>
/var/log/nginx/160232e2-896f-4d3b-9fec-1e08058c2bc2-access.log;<br>
error_log<br>
/var/log/nginx/160232e2-896f-4d3b-9fec-1e08058c2bc2-error.log;<br>
large_client_header_buffers 4 32k;<br>
}<br>
<br>
You can find my discussion with the developer here:<br>
<a href="https://github.com/FoxUSA/OpenNote/issues/102" target="_blank">https://github.com/FoxUSA/OpenNote/issues/102</a><br>
<br>
Thank you for any hint on how I can solve my issue!<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,254127,254127#msg-254127" target="_blank">http://forum.nginx.org/read.php?2,254127,254127#msg-254127</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class=""><font color="#888888">-- <br>regards,<br>Nurahmadie<br>--<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>regards,<br>Nurahmadie<br>--<br>
</div></div>