我试图使用NGINX将没有路径的请求(例如http://example.com/或http://example.com)使用此配置将请求路由到特定的html文件(这只是服务器配置中的相关部分): alias $root/apps/www/html/main/;如果我使用根url (http://example.com)导航到站点,
我从nginx 1.18.0切换到apache 2.4.41,而apache仍在使用nginx默认错误页。我用sudo apt-get remove nginx去除了nginx。我使用的是ubuntu 20.04。编辑:启用站点的内容
# The ServerName directive sets the request scheme, hostname and port that