I have a problem with configuring my wordpress nginx settings.
This is my nginx configuraton

server {
        listen                  80;
        server_name             wordpress.project;
        access_log              /var/log/nginx/wordpress.project/access.log;
        error_log               /var/log/nginx/wordpress.project/error.log;
        root                    /var/www/wordpress.project;

        location / {
                index app_dev.php;
                if (-f $request_filename) {
                rewrite ^(.*)$ /app_dev.php last;

        location ~ .php$ {
                fastcgi_split_path_info         ^(.+.php)(.*)$;
                fastcgi_pass                    unix:/var/run/php5-fpm.sock;
                #fastcgi_pass          ;
                fastcgi_index                   index.php;
                fastcgi_param                   SCRIPT_FILENAME  $request_filename;
                include                         fastcgi_params;



Hosts file is setted as wordpress.project

Permissions of folders are set

sudo chmod -R a+rw /var/www/wordpress.project
sudo chown -R www-data:www-data /var/www/wordpress.project

And symbolic link is set

sudo ln -s /etc/nginx/sites-available/wordpess.project /etc/nginx/sites-enabled/wordpess.project

And there is still an error when i try accessing wordpress.project saying
File not found. Is this correct configuration for wordpress in nginx and if its not what is the best way?

Read more here: Whats the correct way to write nginx configuration for wordpress?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: