2016-07-15 69 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 :-(

我不知道为什么。重新安装后,一切都很好!