ไฟล์โฮสต์เสมือน 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>