Apache2 VirtualHost test.sh

问题描述

我已经在我的PC上安装了Apache2服务器并创建了一些VirtualHosts。一切正常,但是一旦我将域从test1.lan更改为test1.sh,我就会收到“未找到所请求的URL在此服务器上”错误。但我绝对需要以“ .sh”结尾。

我的test1.lan.conf:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName test1.lan
    ServerAlias www.test1.lan
    DocumentRoot /var/www/html/example/test1.sh
</VirtualHost>

我的test1.sh.conf:

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName test1.sh
    ServerAlias www.test1.sh
    DocumentRoot /var/www/html/example/test1.sh
</VirtualHost>

我正在Pop!_OS上使用Apache 2.4.41

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)