2016-07-15 67 views
1

我想要什麼:XAMPP的Joomla虛擬主機 - 儀表板沒有找到

我想這個URL開始的Joomla: 「joomla.localhost」 所有的的Joomla文件放在這個目錄拷貝:

Ç :\ XAMPP \ htdocs中\的Joomla

在我

C:\ XAMPP的\ apache的\的conf \額外\^h ttpd-vhosts.conf

<VirtualHost *:80> 
    ServerName joomla.localhost 
    ServerAlias joomla.localhost 
    DocumentRoot "C:/xampp/htdocs/joomla" 
</VirtualHost> 

在我

C:\ XAMPP的\ apache的\的conf \ httpd.conf中

<Directory "C:/xampp/htdocs/joomla"> 
    Options Indexes FollowSymLinks Includes ExecCGI 
    Order allow,deny 
    Allow from all 
    AllowOverride All 
</Directory> 

在我

C:\ Windows \ System32 \ driver小號\等\主機:

127.0.0.1  joomla.localhost 

當我瀏覽到http://joomla.localhost/installation 一切正常。我可以安裝joomla。一切皆好。 安裝後,我刪除安裝文件夾。 但當我嘗試http://joomla.localhost的Joomla會重定向到http://joomla.localhost/dashboard - 在index.php是啊,因爲

header('Location: '.$uri.'/dashboard/'); 

。 但 - 我沒有找到對象...所以怎麼了? 在我的apache中是否有特定條目需要?

謝謝!

回答

0

這是我的錯。 的Joomla創建這個PHP(的index.php):

<?php 
    if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { 
     $uri = 'https://'; 
    } else { 
     $uri = 'http://'; 
    } 
    $uri .= $_SERVER['HTTP_HOST']; 
    header('Location: '.$uri.'/dashboard/'); 
    exit; 
?> 
Something is wrong with the XAMPP installation :-(

我不知道爲什麼。重新安裝後,一切都很好!