nginx wordpress configuration SSL upstream: "fastcgi://"

I installed wordpress in my server and i tried to access to it but i got the error :
2017/04/08 18:31:26 [error] 31868#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client:, server:, request: “GET / HTTP/1.1”, upstream: “fastcgi://”, host: “”

My configuration is :
# For more information on configuration, see:
# * Official English Documentation:
# * Official Russian Documentation:

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/;

events {
    worker_connections 1024;

http {
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile            on;
    tcp_nopush          on;
    tcp_nodelay         on;
    keepalive_timeout   65;
    types_hash_max_size 2048;

    include             /etc/nginx/mime.types;
    default_type        application/octet-stream;

    # Load modular configuration files from the /etc/nginx/conf.d directory.
    # See
    # for more information.
    include /etc/nginx/conf.d/*.conf;

    # HTTPS server
    server {
        listen       443 ssl;
        error_log /var/log/nginx/servererror.log;
        rewrite_log on;
        ssl_certificate      /var/certs/;
        ssl_certificate_key  /var/certs/;

        ssl_session_cache    shared:SSL:10m;
        ssl_session_timeout  10m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
               root    /etc/nginx/html;
               try_files $uri /index.php?$args;
               index index.php;

        location ~ .php$ {
                root           /etc/nginx/html;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME              
            include        fastcgi_params;

    location ^~ /windoctor {
            alias /usr/local/tomcat7/windoctorapp/windoctor;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header Host $http_host;
            proxy_set_header X-Forwarded-Proto https;
            proxy_redirect off;
            proxy_connect_timeout      240;
            proxy_send_timeout         240;
            proxy_read_timeout         240;



Thanks for your help.

Read more here: nginx wordpress configuration SSL upstream: "fastcgi://"

Leave a Reply

Your email address will not be published. Required fields are marked *