My web is not work today ,Please help me

December 11, 2014 1.7k views

This is my Web
I don't know how to repair it
please help me

  • Assuming this is a wesbite? Have you updated any code latley? Is the apache up to date?

  • no ,yestertoday my website is work.
    today,it is said 500 error
    I use services nginx restart sometime

  • yes i update '.htaccess' in nginx

  • .htaccess has no meaning to nginx. It's an apache thing. You'll need to provide the output of your nginx error log anyone to be able to diagnose your problem. Since your server isn't currently accessible on port 80, it points to an issue with your nginx config, rather than a bug in your website code. The output of nginx -t should give you a place to start your investigation.

  • I'm with Alexander on this one. Things don't magically break the next day unless you did something to the server. For any of us to better help you, some outputs would be useful. What does your Nginx log say? Here's a sack overflow post on finding your log:

  • ok,it is work.
    servername localhost;
    set $yii
    bootstrap "index.php";
    root /var/www;
    index index.html index.htm index.php;
    location / {

    tryfiles $uri $uri/ /$yiibootstrap?$args;
    #try_files $uri $uri/ /index.html;
    this is i write

1 Answer

Backup your .htaccess or move it to outside website folder for example /home/user and reboot your server.

sudo reboot

If not works then you need to check nginx configuration.

Have another answer? Share your knowledge.