0

我想通过 testing.dev 而不是 localhost:8000 访问我的网站。我怎样才能做到这一点?

<VirtualHost *:8000>
    DocumentRoot "C:/Websites/test"
    ServerName www.testing.dev
    ServerAlias testing.dev
</VirtualHost>

我用谷歌搜索了这个问题,但他们都提到了一个 httpd-vhost.conf 文件,但我的项目中似乎没有。

我在哪里/如何找到它?仅供参考,我正在使用内置的网络服务器(bin/console server:run)

这个已经试过了

  • 我在我的 xampp 文件夹中找到了一个 httpd-vhost.conf(不要使用 xampp tho)
4

0 回答 0