代码之家  ›  专栏  ›  技术社区  ›  goldlife

XAMPP Joomla Vhost-未找到仪表板

  •  1
  • goldlife  · 技术社区  · 8 年前

    我想要什么:

    我想用以下URL启动Joomla:“Joomla.localhost” joomla中的所有文件都复制到此目录中:

    C: \xampp\htdocs\joomla

    在我的

    C: \xampp\apache\conf\extra\httpd-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\drivers\etc\hosts:

    127.0.0.1       joomla.localhost
    

    http://joomla.localhost/installation 一切都好。我可以安装joomla。一切都很好。 安装完成后,我删除了安装文件夹。 但当我尝试 http://joomla.localhost 乔姆拉将重定向到 http://joomla.localhost/dashboard -是的,因为

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

    在index.php中。 但是-我找不到对象……那怎么了? 我的apache中是否需要特定条目?

    谢谢

    1 回复  |  直到 8 年前
        1
  •  0
  •   goldlife    8 年前

    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 :-(
    

    我不知道为什么。重新安装后一切正常!