• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Debian 5.0 502 bad gateway

Exmerus

New Member
Joined
Jan 14, 2008
Messages
306
Reaction score
3
502 Bad Gateway

--------------------------------------------------------------------------------

nginx/0.7.67

I don't know what happend but i think i deleted a file from /etc/init.d but i'm not sure i can't login to my website 64.186.133.186. As far as i know it is a problem with apache because mysql is running i'm online at the ots i have been looking up in google for about 5 hours and i don't know what to do..
 
Code:
server {
        listen   80;
        server_name domain.com;
 
        access_log  /var/log/nginx/acces_example_log.log;
 
        location / {
                root   /var/www;
#lokalizacja plikow strony
                index  index.php index.html index.htm;
        }
 
        location ~ .php$ {
          fastcgi_pass   127.0.0.1:9000;
          fastcgi_index  index.php;
          fastcgi_connect_timeout 60;
          fastcgi_send_timeout 180;
          fastcgi_read_timeout 180;
          fastcgi_buffer_size 128k;
          fastcgi_buffers 4 256k;
          fastcgi_busy_buffers_size 256k;
          fastcgi_temp_file_write_size 256k;
          fastcgi_intercept_errors on;
 
          fastcgi_param  SCRIPT_FILENAME  /var/www$fastcgi_script_name;
#lokalizacja plikow strony
          fastcgi_param  QUERY_STRING     $query_string;
          fastcgi_param  REQUEST_METHOD   $request_method;
          fastcgi_param  CONTENT_TYPE     $content_type;
          fastcgi_param  CONTENT_LENGTH   $content_length;
          fastcgi_param  REMOTE_ADDR      $remote_addr;
          fastcgi_param  SCRIPT_NAME      $fastcgi_script_name;
        }
}

I know that's too late, but if someone else got that problem use my nginx.conf , works perfectly:)
 
Back
Top