如何为两个dotnet core 3.1项目配置apache virtualhost?

问题描述

我有两个dotnet core 3.1项目和两个Kestrel服务。每个工作正常。当在一起时,只有第一个起作用。

enter image description here

来自第一个虚拟主机的日志。

enter image description here

错误状态码:404;未找到 :)抱歉我的英语。我需要你的帮助

解决方法

https://www.tecmint.com/change-apache-port-in-linux/ 找到了答案。我注册了不同的端口,并在/etc/apache2/port.conf

中注册了Listen。