Gallery 3.0.4 on nginx

Marcin "WMP" Janowski janowski.m at
Mon Aug 13 13:48:08 UTC 2012

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;
                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

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)

More information about the nginx mailing list