Skip to content

NGINX set up #23

@mrsteveheyes

Description

@mrsteveheyes

Hi,

Firstly, thanks for making this little app. It's super useful and we use it so much!

I'm trying to create it's own virtual host on my VM machine for development. I'm using NGINX and I can't get the config right, so I was wondering if you could help me?

My NGINX config is:

server {
        listen 80;

        root /vagrant/www/wpdc/wpdc;
        index index.php index.html index.htm;

        server_name wpdc.dev;

        location / {
                # try_files $uri $uri/ =404;
                try_files $uri $uri/ /index.php?q=$uri&$args;
        }

        error_page 404 /404.html;

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root /usr/share/nginx/html;
        }

        location ~ \.php$ {
                try_files $uri =404;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
        }
}

The error from access.log I'm getting is:

192.168.10.1 - - [18/Oct/2016:16:05:55 +0000] "GET /index.php/login HTTP/1.1" 302 5 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7"

And on Chrome it is saying:

The wpdc.dev page isn’t working

wpdc.dev redirected you too many times.

ERR_TOO_MANY_REDIRECTS

Any idea what I am going wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions