Hallo,
ich wollte gerne folgendes github auf meiner netcup Homepage ausprobieren:
https://github.com/Nakaner/bahnstoerungen/tree/master/webapp
Dieses github funktioniert nur in Kombination mit ProxyPass, welches .htaccess nicht unterstützt?
ProxyPass /bin/ http://db-livemaps.hafas.de/bin/
ProxyPassReverse /bin/ http://db-livemaps.hafas.de/bin/
Eine Alternative, die ich im Internet gefunden habe ist folgende:
https://stackoverflow.com/questions/12808506/can-proxypass-and-proxypassreverse-work-in-htaccess
„Just to be clear, you cannot use ProxyPass
or ProxyPassReverse
in the htaccess file, but you can use ProxyPassReverse
with mod_rewrite rules that utilize the P
flag.“
Die .htaccess Datei sieht bei mir nun folgendermaßen aus:
RewriteEngine On
RewriteRule ^/?bin/(.*)$ http://db-livemaps.hafas.de/bin/$1 [L,P]
ProxyPassReverse /bin/ http://db-livemaps.hafas.de/bin/
- Leider werden bei mir weiterhin keine Daten von db-livemaps.hafas.de geladen. Liegt ein Fehler bei meiner .htaccess Datei vor, oder funktioniert dies einfach nicht unter netcup?
Viele Grüße
Simon