【问题标题】:XAMPP Joomla Vhost - Dashboard not foundXAMPP Joomla Vhost - 找不到仪表板
【发布时间】:2016-11-18 22:47:38
【问题描述】:

我想要什么:

我想用这个 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 时,joomla 将重定向到http://joomla.localhost/dashboard - 是的,因为

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

在 index.php 中。 但是 - 我没有找到对象......所以出了什么问题? 我的 apache 中是否需要特定条目?

谢谢!

【问题讨论】:

    标签: php apache joomla vhosts


    【解决方案1】:

    这是我的错。 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 :-(
    

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

    【讨论】:

      猜你喜欢
      • 2017-01-12
      • 1970-01-01
      • 2021-01-09
      • 2014-10-24
      • 2019-02-13
      • 2018-06-15
      • 1970-01-01
      • 2017-06-28
      相关资源
      最近更新 更多