0
我有一個網站的Web服務器,我想添加另一個地址用於預生產使用。嘗試添加虛擬主機
這裏existant:
的httpd.conf:
ServerAdmin [email protected]
ServerName www.toto.com:80
DocumentRoot "/home/tutu/var/www/html"
模塊/ vhost.conf:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www.toto.com:80
DirectoryIndex index.php
ErrorLog /home/tutu/var/log/httpd/error-mod_log
LogLevel warn
CustomLog /home/tutu/var/log/httpd/access-mod_log common-cookie
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
</VirtualHost>
我試圖添加其他虛擬主機,但不工作的新地址:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName www2.toto.com:80
DirectoryIndex index.php
ErrorLog /home/tutu/var/log/httpd/error-www2_log
LogLevel warn
CustomLog /home/tutu/var/log/httpd/access-www2_log common-cookie
DocumentRoot "/home/tutu/var/www2/html"
</VirtualHost>
地址www2.toto.com不起作用。 你有想法嗎?
謝謝
對不起,我沒有到達服務器。 – superscral
這是DNS方面,是的,謝謝 – superscral