修改/conf/nginx.conf配置文件

server {
        listen *:80;                            # Listen for incoming connections from any interface on port 80
        server_name "";                         # Don't worry if "Host" HTTP Header is empty or not set
        #root /usr/share/nginx/html;             # serve static files from here
        #include       /etc/nginx/mime.types;    # Send appropriate MIME types
        location / {
          try_files $uri /index.html;
          root   ProjectName;
        }
      }

 

相关文章:

  • 2021-12-19
  • 2021-11-13
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2021-04-10
  • 2021-08-12
  • 2021-09-13
  • 2021-06-12
  • 2021-06-03
  • 2021-08-22
  • 2022-12-23
相关资源
相似解决方案