2012-11-27 49 views
0

我有虛擬主機是這樣的:添加虛擬主機definiation xamppfiles/htdocs目錄後通過HTTPS對HTTP無形的,但仍然可以訪問

NameVirtualHost *:80 
<VirtualHost *:80>   
    ServerName local.testing.com  
    DocumentRoot "/Users/myname/Sites/myapp" 
    DirectoryIndex index.html 
    <Directory /Users/myname/Sites/myapp> 
     Options Indexes FollowSymLinks Includes ExecCGI 
     AllowOverride All 
     Order Allow,Deny 
     Allow From All 
    </Directory>  
</VirtualHost> 

白熱化文件

127.0.0.1 localhost 
127.0.0.1 local.testing.com 
::1    localhost 

使這個虛擬主機後,我無法通過http訪問xampp/htdocs下的任何網站。但他們通過HTTPS

訪問時,訪問I本地主機它顯示目錄列表:"/Users/myname/Sites"

plz幫助我理清這個問題,

在此先感謝

回答

0

所以問題是,我們需要一個虛擬主機本地主機 e。 g like this SOQ

<VirtualHost *:80> 
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs" 
    ServerAlias localhost 
    ServerName localhost 
</VirtualHost> 
相關問題