Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Неоткрывается (404) phpmyadmin
On Thu, May 27, 2010 at 08:02:31AM -0400, hg_04 wrote:
Не нужны не rewrite, ни alias.
"fastcgi_index index.php" в ^/phpmyadmin/.+\.php$ тоже не нужен.
> в итоге должно получится вот так
> index index.php;
> location /phpmyadmin{
> alias /usr/share/phpmyadmin;
- alias /usr/share/phpmyadmin;
+ root /usr/share;
> }
>
> location ~ ^/phpmyadmin/.+\.php$ {
> rewrite ^/phpmyadmin(/.+)$ $1 break;
> fastcgi_pass 127.0.0.1:9000;
> include /etc/nginx/fastcgi_params;
> fastcgi_index index.php;
> fastcgi_param SCRIPT_FILENAME
> /usr/share/phpmyadmin$fastcgi_script_name;
>
- rewrite ^/phpmyadmin(/.+)$ $1 break;
- fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
+ fastcgi_param SCRIPT_FILENAME /usr/share$fastcgi_script_name;
--
Игорь Сысоев
http://sysoev.ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|