設定檔位置
apache\conf\extra\httpd-vhosts.conf
範例:
<VirtualHost *:80>
ServerAdmin mail@example.com
DocumentRoot "D:/xampp/htdocs/vector.cool"
ServerName vector.cool
ErrorLog logs/vector.cool-error_log
CustomLog logs/vector.cool-access_log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin mail@xyz.com
DocumentRoot "D:/xampp/htdocs/v123.tw"
ServerName v123.tw
ErrorLog logs/v123.tw-error_log
CustomLog logs/v123.tw-access_log common
</VirtualHost>
參考:
如果文章對您很有幫助
請我喝杯咖啡吧
Bitcoin 比特幣錢包:
38ieWXhURt27br9XrDoCeo4eruzKyi8QKs
Post Views: 66