<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>Hi,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div><span><div><font size="2">server {</font></div><div><font size="2"> listen 80;</font></div><div><font size="2"> server_name localhost;</font></div><div><font size="2"> #access_log /var/log/nginx/access.log main;</font></div><div><font size="2"><br></font></div><div><font size="2"> location / {</font></div><div><font size="2"> root /var/www/nginx;</font></div><div><font size="2"> index index.php index.html
index.htm;</font></div><div><font size="2"> }</font></div><div><font size="2"><br></font></div><div><font size="2"> </font><span style="font-size: small; "> location /phpmyadmin {</span></div><div><font size="2"> root /usr/share/;</font></div><div><font size="2"> index index.php index.html index.htm;</font></div><div><font size="2"> location ~ ^/phpmyadmin/(.+\.php)$ {</font></div><div><font size="2"> try_files $uri =404;</font></div><div><font size="2"> root /usr/share/;</font></div><div><font size="2">
fastcgi_pass 127.0.0.1:9000;</font></div><div><font size="2"> fastcgi_index index.php;</font></div><div><font size="2"> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</font></div><div><font size="2"> include /etc/nginx/fastcgi_params;</font></div><div><font size="2"> }</font></div><div><font size="2"> location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {</font></div><div><font size="2"> root /usr/share/;</font></div><div><font size="2">
}</font></div><div><font size="2"> }</font></div><div><font size="2"> location /phpMyAdmin {</font></div><div><font size="2"> rewrite ^/* /phpmyadmin last;</font></div><div><font size="2"> }</font></div><div><span style="font-size: 13px; ">}</span><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> </div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Elton Lima<br>------------------------------------------------------<br>Analista de Suporte Linux<br>E-mail: eltonlim@gmail.com // eltlims@yahoo.com.br<br>Site: http://blog.eltonlima.com.br<br></div> <div style="font-size: 10pt; font-family: arial, helvetica, sans-serif; "> <div
style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">De:</span></b> maria m. <lists@ruby-forum.com><br> <b><span style="font-weight: bold;">Para:</span></b> nginx@nginx.org <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Segunda-feira, 16 de Abril de 2012 15:27<br> <b><span style="font-weight: bold;">Assunto:</span></b> Re: File Not Found logging in w/ nginx+phpMyAdmin in URL subdir<br> </font> </div> <br>server {<br>listen 80;<br>server_name support.example.com;<br>access_log /var/log/nginx/support.example.com.access.log;<br>error_log /var/log/nginx/support.example.com.error.log;<br><br># this root dir below is to the thebuggenie htdocs folder<br>root /home/user/public_html/support.example.com/thebuggenie;<br>client_max_body_size 40M;<br>large_client_header_buffers 4 8k;<br>index index.php
index.html;<br><br>location ^~ /files { }<br><br>#location ~ \..*/.*\.php$ { return 403; }<br><br>location ~ \.php$ {<br>fastcgi_pass 127.0.0.1:9000;<br>fastcgi_index index.php;<br>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>include fastcgi_params;<br>}<br><br>location ~ /(?<suburi>.*){<br>set $suburi $1;<br>try_files $uri $uri/ /index.php?url=$suburi&$args;<br>}<br><br>-- <br>Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br><br>_______________________________________________<br>nginx mailing list<br><a ymailto="mailto:nginx@nginx.org" href="mailto:nginx@nginx.org">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><br><br> </div> </div> </div></body></html>