XAMPP Joomla Vhost - 未找到仪表板
XAMPP Joomla Vhost - Dashboard not found
我想要的:
我想用这个 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 will redirect to http://joomla.localhost/dashboard - 是的,因为
header('Location: '.$uri.'/dashboard/');
在index.php。
但是 - 我没有找到对象......那怎么了?
我的 apache 中是否需要特定条目?
谢谢!
是我的错。
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 :-(
我不知道为什么。重装后一切正常!
我想要的:
我想用这个 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 will redirect to http://joomla.localhost/dashboard - 是的,因为
header('Location: '.$uri.'/dashboard/');
在index.php。 但是 - 我没有找到对象......那怎么了? 我的 apache 中是否需要特定条目?
谢谢!
是我的错。 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 :-(
我不知道为什么。重装后一切正常!