Jump to content

phpVMS v3 on nginx+php-fpm


Khuman

Recommended Posts

Hi!

I try startup phpVMS3 on my server with nginx and php-fpm. Afetr click "Start Here", I always take 404 error. My nginx config:

server {
        listen          XXX.XXX.XXX.XXX:80;
        server_name     v3.myVA.org;
        access_log      /var/log/nginx/v3.myVA.org.access.log;
        error_log       /var/log/nginx/v3.myVA.error.log debug;
        root /www/myVA.org;
        index index.html index.php;

        gzip_static on;
        gzip on;
        gzip_comp_level 5;
        gzip_types application/x-javascript application/javascript text/css image/jpeg image/png;

        location / {
               try_files $uri $uri/ /index.php;
        }

        location ~* ^.+\.(jpg|jpeg|gif|png|svg|swf|ico|js|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|xml)$ {
                expires max;
        }

        location ~ .php$ {
                        fastcgi_split_path_info ^(.+\.php)(/.+)$;
                        include fastcgi_params;
                        fastcgi_pass unix:/var/tmp/php-fpm.sock;
                        fastcgi_index index.php;
                        fastcgi_param SCRIPT_FILENAME /www/myVA.org$fastcgi_script_name;
                        fastcgi_intercept_errors on;
        }
}

Many examples for nginx.conf for CodeIgniter framwork didn't help.

Can anybody help me?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...