My web is not work today ,Please help me

  • Posted December 11, 2014

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


ok,it is work. server_name localhost; set $yii_bootstrap “index.php”; root /var/www; index index.html index.htm index.php; location / { try_files $uri $uri/ /$yii_bootstrap?$args; #try_files $uri $uri/ /index.html; } this is i write

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:

.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.

yes i update ‘.htaccess’ in nginx

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

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

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.