How to configure subdomains for Apache2 on Ubuntu?

后端 未结 3 741
猫巷女王i
猫巷女王i 2021-01-31 12:04

I followed these instructions to configure subdomains for apache. I can access the subdomain using http://localhost/test though I cannot access it via http://

3条回答
  •  情话喂你
    2021-01-31 12:37

    As Mark B already answered correctly the problem was a misconfiguration in /etc/hosts. The correct configuration is:

    # /etc/hosts
    127.0.0.1     test.localhost
    

提交回复
热议问题