使用Nginx的Web服务器在创建.save文件之前一直工作 [英] Webserver with nginx working until .save file created

查看:88
本文介绍了使用Nginx的Web服务器在创建.save文件之前一直工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去48个小时里到处搜寻之后,找出了我的服务器突然停止工作的原因,最后,我自己找到了答案,我决定将其张贴在这里,供其他人使用整个周末进行一次如此琐碎的事情.

After googling everywhere the last 48 hours to find out why my server suddenly stopped working, and finally, finding the answer myself, I decided to post it up here for anyone else who is googling a whole weekend away on something so trivial.

在nginx上加载了所有内容,使LEMP正常运行,但是随后我尝试进行一些SSL修改,并且在所有内容停止运行的过程中进行了修改.

Loaded everything on nginx, LEMP working perfectly, but then I tried to do some SSL modifications and in the middle of everything it stopped working.

除了 sites-available/www (我的网站版本/available/default)中的必要行之外,我已经完全删除了所有内容,并检查了nginx.conf的格式是否正确,没有重复包含的内容,在其他地方也提到过.

I've completely removed everything but the necessary lines in sites-available/www (my version of sites-available/default) and checked that nginx.conf is correctly formatted without double includes that I've seen mentioned in other places.

一个文件似乎潜入了我的配置,并弄乱了所有内容.这是一个名为 nginx.conf.save 的自动保存文件,它会干扰原始的 nginx.conf 配置并导致找不到页面错误

It appears the a file sneaked into my configurations and messed everything up. It's an autosave file called nginx.conf.save which gets in the way of the original nginx.conf configuration and causes a Page not found error.

现在回到让PHP与SSL一起使用...幸福的时光!

Now back to getting PHP working with SSL... happy times!

推荐答案

删除了文件 nginx.conf.save 并重新加载了nginx.现在,它会按原样加载我的网页.

Removed the file nginx.conf.save and reloaded nginx. Now it loads my webpages as it should.

这篇关于使用Nginx的Web服务器在创建.save文件之前一直工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆