Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Webmin 在 IP 地址上设置子域?
那么,如果我去http://directory.127.0.0.1/它会去同一个地方http://directory.localhost/(/var/www/directory)?
http://directory.127.0.0.1/
http://directory.localhost/
/var/www/directory
这不是 IP 地址和主机名的工作方式。
您要么有一个IP 地址,它只能由数字组成,要么有一个主机名,它的组成部分不能只由数字组成。主机名可以有子域,IP 地址不能。