我需要创建名为"virtualhost_name“的虚拟主机。使用http://virtualhost_name访问它
我有一个模式:
<VirtualHost *:80>
ServerAdmin jan@novak.cz
DocumentRoot "path"
ServerName Name_of_server
ErrorLog "logs/error.log"
CustomLog "logs/log.log" common
</VirtualHost>我应该把名字写在哪里?
发布于 2012-02-06 14:12:28
有两个地方可以编写(您可以同时使用它们):
例如:您有一个想同时托管example.com和example.net的网站:
ServerName example
ServerAlias example.com example.net www.example.com www.example.nethttps://webmasters.stackexchange.com/questions/25538
复制相似问题