M
M
Mikhail Smirnov2017-01-05 16:27:51
Nginx
Mikhail Smirnov, 2017-01-05 16:27:51

Why won't nginx sites open on win10?

When I try to open the site , I get
an error: Unable to access the site. Unable to find the DNS address of the test.local server There are nginx and FastCGI running processes in the logs with errors, empty. nginx config

worker_processes  1;

error_log  logs/error.log;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    sendfile        on;

    keepalive_timeout  65;

    proxy_intercept_errors on;
    fastcgi_intercept_errors on;
    fastcgi_buffer_size  128k;
    fastcgi_buffers  4 256k;
    fastcgi_busy_buffers_size  256k;

    #gzip  on;

    server {
        listen       80;
        ssi on;
        gzip on;
        gzip_comp_level 7;
        gzip_types application/x-javascript application/javascript text/css;

        server_name  test.local;

        root   F:/domains/test/;

        charset utf-8;

        index  index.php;

        location ~ \.php$ {
           
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

        location ~ /\.ht {
            deny  all;
        }
    }

Tell me what could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zorca, 2017-01-05
@fortoster83

Enter the local domain in the hosts file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question