
So kann diese Konfiguration auf httpd.conf erstellt werden:
Benutzerzugriffhttp://Seite?und sehen Sie Inhalte vonhttp://site:8080
Aber
wenn sie zugreifenhttp://site/index.html, es sollte umgeleitet werden zuhttp://site/app/index.html
Das ist der Inhalt vonhttp://site:8080/app/index.html
und wenn Benutzerzugriffhttp://site:8080/index.htmlDer Zugriff sollte so bleiben. Nicht umleiten aufhttp://site:8080/app/index.html
Ich habe diese Konfiguration auf httpd.conf ausprobiert:
Redirect "/index.html" "/app/index.html"
ProxyRequests Off
ProxyPreserveHost on
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
RewriteEngine On
Aber die Datei index.html zu app/index.html funktioniert nicht.
Kann dies mit httpd.conf gemacht werden?
der 8080 ist auf Tomcat und der 80 ist auf httpd.
Antwort1
Habe die Antwort gefunden:
RewriteRule ^/index\.html$ /app/index.html [L,R]