我的ISP提供给我一个像“用户”.ddns。“providersite.com”的用户DNS。 我在本地主机上制作了“img”子域名。 我编辑了win主机文件,添加
127.0.0.1 img.localhost
我已经添加到apache虚拟主机
<VirtualHost *:80> ServerName img.localhost DocumentRoot "C:/www/web/img" DirectoryIndex index.php index.html index.htm index.shtml </VirtualHost>
所以我可以在互联网上工作 – img。“user”.ddns。“providersite.com”? 这甚至有可能吗?
您可能会要求您的ISP在"user".ddns.providersite.com上放置通配符子域名,例如*.user.providersite.com
但完全取决于您的提供商解决该域名。 如果我记得正确的话,还有其他DDNS提供者包含这个function。 我记得(德国)提供商是Servermaster 。 你可以试试看