如何使用Nginx服务器在维护页面中插入图像

如何使用Nginx服务器在维护页面中插入图像,nginx,Nginx,这是nginx配置页面。我必须更改哪些代码才能在维护html页面上获得图像 我的维护HTML页面是: <html> <body> <h1 style="text-align:center;"> <h1 style="color:#33B2FF;">Timesheet has gone for time travel..... will be back with more users :)</h1> <

这是nginx配置页面。我必须更改哪些代码才能在维护html页面上获得图像


我的维护HTML页面是:

<html>
  <body>
    <h1 style="text-align:center;">
    <h1 style="color:#33B2FF;">Timesheet has gone for time travel..... will be back with more users :)</h1>
    <h1 style="color:#83A1B4;">Please visit later.</h1>
  </body>
</html>

时间旅行的时间表已过期。。。。。将返回更多用户:)
请稍后访问。
我必须在上面插入一个图像。请帮忙


提前感谢

将所有自定义html和图像放在一个目录中维护

/home/fa

maintenance/maintenance.html
maintenance/maintenance.png
将图像标签放入您的maintenance.html

<html>
  <body>
    <h1 style="text-align:center;">
    <h1 style="color:#33B2FF;">Timesheet has gone for time travel..... will be back with more users :)</h1>
    <h1 style="color:#83A1B4;">Please visit later.</h1>
    <img src="maintenance.png" alt="maintenance" height="200" width="200">
  </body>
</html>

如果您在呈现图像类型时遇到问题,也请阅读此链接:

将所有自定义html和图像放入目录维护

/home/fa

maintenance/maintenance.html
maintenance/maintenance.png
将图像标签放入您的maintenance.html

<html>
  <body>
    <h1 style="text-align:center;">
    <h1 style="color:#33B2FF;">Timesheet has gone for time travel..... will be back with more users :)</h1>
    <h1 style="color:#83A1B4;">Please visit later.</h1>
    <img src="maintenance.png" alt="maintenance" height="200" width="200">
  </body>
</html>

如果您在呈现图像类型时遇到问题,也请阅读此链接:

这不起作用,因为请求图像时将返回503。这不起作用,因为请求图像时将返回503