File Not Found logging in w/ nginx+phpMyAdmin in URL subdir

Elton Lima eltlims at yahoo.com.br
Mon Apr 16 19:34:30 UTC 2012


Hi,

server {
        listen  80;
        server_name  localhost;
        #access_log  /var/log/nginx/access.log  main;

        location / {
            root   /var/www/nginx;
            index  index.php index.html index.htm;
        }

         location /phpmyadmin {
               root /usr/share/;
               index index.php index.html index.htm;
               location ~ ^/phpmyadmin/(.+\.php)$ {
                       try_files $uri =404;
                       root /usr/share/;
                       fastcgi_pass 127.0.0.1:9000;
                       fastcgi_index index.php;
                       fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                       include /etc/nginx/fastcgi_params;
               }
               location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
                       root /usr/share/;
               }
        }
        location /phpMyAdmin {
               rewrite ^/* /phpmyadmin last;
        }
}


 
Elton Lima
------------------------------------------------------
Analista de Suporte Linux
E-mail: eltonlim at gmail.com // eltlims at yahoo.com.br
Site: http://blog.eltonlima.com.br


________________________________
 De: maria m. <lists at ruby-forum.com>
Para: nginx at nginx.org 
Enviadas: Segunda-feira, 16 de Abril de 2012 15:27
Assunto: Re: File Not Found logging in w/ nginx+phpMyAdmin in URL subdir
 
server {
listen 80;
server_name support.example.com;
access_log /var/log/nginx/support.example.com.access.log;
error_log /var/log/nginx/support.example.com.error.log;

# this root dir below is to the thebuggenie htdocs folder
root /home/user/public_html/support.example.com/thebuggenie;
client_max_body_size 40M;
large_client_header_buffers 4 8k;
index index.php index.html;

location ^~ /files { }

#location ~ \..*/.*\.php$ { return 403; }

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~ /(?<suburi>.*){
set $suburi $1;
try_files $uri $uri/ /index.php?url=$suburi&$args;
}

-- 
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120416/93ba28a0/attachment.html>


More information about the nginx mailing list