Gallery 3.0.4 on nginx

Marcin "WMP" Janowski janowski.m at gmail.com
Mon Aug 13 13:51:38 UTC 2012


And on other links on gallery3/ (eq: gallery3/user_profile/show/2 or
gallery3/logout) i have 404.

2012/8/13 Marcin "WMP" Janowski <janowski.m at gmail.com>:
> Hello, i cant run gallery3 on ongix. Now i use this configure:
>
> server {
>         listen (...);
>         server_name *.wmp.(...) wmp.(...);
>
>         access_log  /home/wmp/www/wmp.(...)/logs/access.log;
>         error_log   /home/wmp/www/wmp.(...)/logs/error.log;
>
>         root /home/wmp/www/wmp.(...)/htdocs;
>         index index.php index.html;
>         autoindex off;
>
>         location /gallery3 {
>                 if_modified_since off;
>                 add_header Last-Modified "";
>                 fastcgi_index  index.php;
>                 fastcgi_split_path_info ^(.+.php)(.*)$;
>                 index index.php;
>                 if (-f $request_filename) {
>                         expires max;
>                         break;
>                 }
>                 if (!-e $request_filename) {
>                         rewrite ^/gallery3/index.php/(.+)$
> /gallery3/index.php?kohana_uri=$1 last;
>                 }
>         }
>
>         location ~ \.php$ {
>                 include /etc/nginx/fastcgi_params;
>                 fastcgi_index index.php;
>                 fastcgi_pass   unix:/var/run/nginx/wmp.php-fpm.socket;
>                 fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script_name;
>         }
> }
>
> This is my files in htdocs/gallery3:
> $ ls htdocs/gallery3/
> LICENSE  README  application  index.php  installer  lib  modules
> php.ini  robots.txt  system  themes  var
> $
>
> On this configure i have 404 on css and JS files on gallery3/combined.
> --
> Marcin Janowski(WMP)



-- 
Marcin Janowski(WMP)



More information about the nginx mailing list