Talk:Pitfalls

Hello all, a question regarding the "Proxy Everything" section of the page: I'm trying to set up a phpldapadmin on a server on which I decided I won't install Apache. The problem and question is: using the suggested code snippet with PLA (or any of the usual php applications that mix php scripts and file content in the same directory) what will happen is that try_files will find a matching index.php file and happily serve it to the client as a download. The @proxy part won't be executed unless the php file is not there and that's not the case.

Since I'm a total noob :D it could very well be that there are other ways to exclude phps from the try_files list and I'll go on searching and learning happily, however I think that a fully working example could be very useful to cut on the quantity of bad advice and broken configuration examples out there.

Roberto Maurizzi 08:26, 20 January 2012 (PST)

Check out Configuration. We do need a phpmyadmin example. The idea to try_files is that Nginx should serve the firle directly if it exists, otherwise pass the request to php. Hop into the #nignx irc channel on freenode if you need some help. User:MichaelLustfield 17:07, 20 January 2012 (CST)