Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

nginx + phpmyadmin alias


  • To: <nginx-ru@xxxxxxxxx>
  • Subject: nginx + phpmyadmin alias
  • From: <artem.ye@xxxxxxx>
  • Date: Mon, 13 May 2013 19:53:23 +0300
  • Content-language: ru
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From; bh=SFvq02wGARpIPAk3mnr7b9Ib/dTy2Dt23AP/pZIhX5c=; b=JbtdxWCs1noP9KRlLbpFkNPrl6mtu3jpllyTz76PYjlWGyvBzi4O+/BdbU61dihwF/UEwEZDtMBg/+VGGKOSBFtZtgJKoAIrTiLwrg1JcmeETcTAsqzYYeVYlRMCngIFQMt9GAEWgtPF936bOnJXPT2bfM0Y70ic7TU1rXl/c3g=;
  • Thread-index: Ac5P+mFtXX/aaa2nRaqwupW4FA8KNQ==

.

 

Nginx 404 /phpmyadmin.

 

opencart /usr/local/www/upload/

phpMyAdmin, /usr/local/www.

 

:

 

server {

 

listen XXX.XXX.XXX.XXX:80;

server_name localhost;

 

root /usr/local/www/upload/;

index index.php index.html;

 

location / {

index index.php;

try_files $uri @opencart;

}

 

location @opencart {

rewrite ^/(.+)$ /index.php?_route_=$1 last;

}

 

location /admin {

index index.php;

}

 

location /phpMyAdmin {

index index.php;

}

 

location /phpmyadmin(.*)$ {

rewrite ^/(.*)$ /phpMyAdmin/index.php$1 last;

}

 

if (!-e $request_filename) {

rewrite ^/(.*)$ /index.php?_route_=$1 last;

}

 

location ~ \.php$ {

fastcgi_pass unix:/var/run/php-fpm.sock;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

fastcgi_param REDIRECT_STATUS 200;

fastcgi_read_timeout 3600;

 

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header Host $http_host;

proxy_redirect off;

}

 

error_page 500 502 503 504 /50x.html;

 

location = /50x.html {

root /usr/local/www/nginx-dist;

}

}

 

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.