2016-03-26 11 views
0

Bu konuyla ilgili birçok yanıtı inceledim, ancak bunlardan bir tanesi yardım etmedi. XAMPP'de birden çok sanal konakçı ayarlamaya çalışıyorum ancak tarayıcıya sunucu takma adını yazdığımda beni XAMPP/panoya yönlendiriyor. Aşağıdaki kodu inceleyebilir ve düşüncenizi paylaşabilir misiniz? Şimdiden teşekkürler.XAMPP VirtualHost htdocs'a yönlendiriyor

httpd-vhosts.conf dosya

NameVirtualHost *:80 
<VirtualHost *:80> 
    DocumentRoot "C:/xampp/htdocs/" 
    ServerName localhost 
</VirtualHost> 

<VirtualHost test*:80> 
    DocumentRoot "E:/Drive/Dev/test" 
    ServerName test 
    ServerAlias test 
    <Directory "E:/Drive/Dev/test"> 
     Options Indexes FollowSymLinks 
     AllowOverride All 
     Order allow,deny 
     Allow from all 
    </Directory> 
</VirtualHost> 

httpd.conf dosyası

# Virtual hosts 
Include conf/extra/httpd-vhosts.conf 

DocumentRoot "C:/xampp/htdocs/" 
<Directory "C:/xampp/htdocs/"> 
    Options Indexes FollowSymLinks Includes ExecCGI 
    AllowOverride All 
    Require all granted 
</Directory> 

barındıran

127.0.0.1 test 

cevap

1

"dizin" etiketleri hatları aşağıda değiştirme dosya

Order allow,deny 
Allow from all 
Bu

Require all granted 

düzeltmeleri sorunu için

.