我的 httpd 虚拟主机文件
除 sachin.new 之外,所有网站均可访问。
“sachin.new”显示“无法访问网站”
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/srv/http/sachin/public_html/"
<Directory "/srv/http/sachin/public_html/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ServerName sachin.test
ServerAlias www.sachin.test
ErrorLog "/var/log/httpd/sachin.test-error_log"
CustomLog "/var/log/httpd/sachin.test-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/srv/http/DCC/public_html/"
<Directory "/srv/http/DCC/public_html/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ServerName dascc.test
ServerAlias www.dascc.test
ErrorLog "/var/log/httpd/dascc.test-error_log"
CustomLog "/var/log/httpd/dascc.test-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/srv/http/sachinnew/"
<Directory "/srv/http/sachinnew/">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ServerName sachin.new
ServerAlias www.sachin.new
ErrorLog "/var/log/httpd/sachinnew.test-error_log"
CustomLog "/var/log/httpd/sachinnew.test-access_log" common
</VirtualHost>