Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter crestapps

    (@crestapps)

    Hello, I am using version Version 1.6.3. Here is the link where the gallery should appears
    https://www.beitsahourusa.org/gallary/

    Thread Starter crestapps

    (@crestapps)

    I changed the Nginx to the following configuration


    server {
    listen 80;
    server_name usa.mydomin.com;

    #root /var/www/html; # <<<<< REMOVED THIS
    root /data/wordpress_app/public_html; # <<<<< ADDED THIS

    access_log off;
    error_log /var/log/nginx/usa.mydomain.com-error.log;

    index index.html index.php;

    location / {
    # First attempt to serve request as file, then as directory, then fall back to displaying a 404.
    try_files $uri $uri/ /index.php?$args;
    }

    # pass the PHP scripts to FastCGI server listening on localhost:8000
    location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass localhost:8000;
    fastcgi_index index.php;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param SCRIPT_NAME $fastcgi_script_name;
    }
    }

    But now I am getting <backquote>502 Bad Gateway</backquote>

    looking at the logs I get the following error


    2020/10/16 15:22:58 [error] 1475#1475: *68 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: MyIpAddress, server: usa.mydomain.com, request: "GET / HTTP/1.1", upstream: "fastcgi://[::1]:8000", host: "usa.mydomain.com"

    2020/10/16 15:22:58 [error] 1475#1475: *68 upstream sent unsupported FastCGI protocol version: 72 while reading response header from upstream, client: MyIpAddress, server: usa.mydomain.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://127.0.0.1:8000", host: "usa.mydomain.com", referrer: "http://usa.mydomain.com/"

Viewing 2 replies - 1 through 2 (of 2 total)