How to configure subdomains for Apache2 on Ubuntu?

后端 未结 3 739
猫巷女王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:32

    The blog post you linked to (from my blog) instructs to set up a new VirtualHost element with an ip of 127.0.0.2 so you can create multiple subdomains easily.

    You're setup using 127.0.0.1 will work great for one subdomain, but if you plan on adding more, I'd suggest setting up the new VirtualHost elements as described in the post.

提交回复
热议问题