Jump to content

Nginx Configuration


dsmith

Recommended Posts

As an update to this thread; Here's an excerpt example nginx config (assuming php-fpm). Dont copy and paste this.

    location ~ \.php(.*)$ {
	    fastcgi_split_path_info ^(.+\.php)(/.+)$;
	    include /etc/nginx/fastcgi_params;
	    fastcgi_pass unix:/var/lib/php5-fpm/web5.sock;
	    fastcgi_index index.php;
	    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
	    fastcgi_intercept_errors on;
    }

This also assumes your php.ini (in this case for php-fpm) has:

cgi.fix_pathinfo=0

At this point i have everything working. Hope that helps someone.

  • Like 1
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...