我使用的XAMPP 3.2.1和Apache中創造http-vhosts.conf
文件新的虛擬主機下面XAMPP 3.2.1虛擬主機不工作
<VirtualHost *:8080>
DocumentRoot "C:/xampp/htdocs/support/srinet"
ServerName supportcenter.sevplcorp.com
Alias /mrpdf "E:/temp"
<Directory "C:/xampp/htdocs/support/srinet">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
代碼當我在瀏覽器窗口中打開supportcenter.sevplcorp.com
它顯示一個如下
你是否已經在'hosts'文件中定義了這個主機?當您在'.conf'中做任何更改時,您必須重新啓動您的Web服務器。 – mitkosoft