[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache als Reverse Proxy für DotNet Applikation (War: DotNet Applikation unter Apache)



On 02.04.20 15:33, Andreas Tille wrote:

> Listen 4242
> 
> <VirtualHost *:*>
>     RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
> </VirtualHost>
> 
> <VirtualHost *:4242>
>     ProxyPreserveHost On
>     ProxyPass / http://127.0.0.1:5000/
>     ProxyPassReverse / http://127.0.0.1:5000/
>     ServerName host.my.local
>     ServerAlias *.my.local
>     ErrorLog ${APACHE_LOG_DIR}/dotnet-error.log
>     CustomLog ${APACHE_LOG_DIR}/dotnet-access.log common
> </VirtualHost>

Ich habe jetzt nicht im Detail verstanden, wozu der *:* VHost gut sein
soll. Würde ich im Zweifel rausnehmen. Ansonsten sieht das gut aus
(abgesehen davor, dass ich ungern .local TLDs sehe). Eigentlich sollte
das funktionieren.

> Wenn ich nun zu http://localhost:4242 gehe, dann zeigt der Browser

Mußt Du mit Deinem Setup nicht auf http://host.my.local:4242 gehen?

Viele Grüße
Ulf


Reply to: