2012-12-13 51 views
0

我已成功升級到xampp 1.8.1。 Apache和MySQL服務器啓動正常。xampp 1.8.1。服務器啓動,但別名不起作用

但是,我只是無法讓我的別名在httpd.conf中工作。 IE無法顯示頁面

我:

Alias /tnl "H:northern_light" 
<Directory "H:northern_light"> 
    DirectoryIndex index.php  
    Options All 
    AllowOverride All 
    Require all granted 
</Directory> 

我已經嘗試了多種選擇。另外,我嘗試更改Apache上的端口。

試圖127.0.0.1/tnl,本地主機/ TNL等

任何想法?

回答

-1

Acordin到ApacheFriends - XAMPP

# Alias: Maps web paths into filesystem paths and is used to 
# access content that does not live under the DocumentRoot. 
# Example: 
# Alias /webpath /full/filesystem/path 
# 
# If you include a trailing/on /webpath then the server will 
# require it to be present in the URL. You will also likely 
# need to provide a <Directory> section to allow access to 
# the filesystem path. 

的創作者這意味着:

+0

解釋它,請,不只是複製和粘貼一些文檔片斷,這是什麼,他需要在他的具體情況呢? – DaGardner

1

更換您的目錄選項:

Alias /tnl "H:/northern_light" 
    <Directory "H:/northern_light"> 
     AllowOverride None 
     Options None 
     Require all granted 
    </Directory> 

我個人使用: 「索引多視圖」,而不是「無「在允許目錄索引的選項上。 像這樣:

Alias /tnl "H:/northern_light" 
    <Directory "H:/northern_light"> 
     AllowOverride None 
     Options Indexes MultiViews 
     Require all granted 
    </Directory> 
相關問題