Heim  >  Fragen und Antworten  >  Hauptteil

Web-Nginx-Konfigurationsproblem

Ich musste /html/* 的请求都指向 /index.html eingeben, aber die Umleitungsfunktion kann nicht verwendet werden

Wie implementiert man dies in der Konfigurationsdatei? Vielen Dank an alle

PHP中文网PHP中文网2713 Tage vor466

Antworte allen(1)Ich werde antworten

  • 淡淡烟草味

    淡淡烟草味2017-05-16 17:25:28

    这样应该就可以了

            location /html/ {
                proxy_pass         http://127.0.0.1/index.html;
            } 
    

    可能 127.0.0.1 根据自己的实际情况需要调整的。

    Antwort
    0
  • StornierenAntwort