我有两个域名,每个到同一个IP地址。是否有可能让网站识别哪个域名连接到它并相应地显示某个页面?
它只是一个小型的个人服务器,xampp正在被使用。
发布于 2016-11-15 08:07:39
虚拟主机:
<VirtualHost *>
ServerAdmin admin@localhost.com
DocumentRoot "C:/xampp/htdocs" # change this line with your htdocs folder
ServerName localhost
ServerAlias localhost
<Directory "C:/xampp/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>不过,还是谢谢你的帮助
https://webmasters.stackexchange.com/questions/101066
复制相似问题