2016-07-15 13 views
1

gefunden Was ich will: "joomla.localhost" Alle Dateien aus joomla kopiert werden in diesem Verzeichnis:XAMPP Joomla Vhost - Dashboard nicht

C

ich Joomla mit dieser URL gestartet werden soll : \ xampp \ htdocs \ joomla

In meinem

C: \ xampp \ apache \ conf \ zusätzliche \ h ttpd-vhosts.conf

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

Und in meinem

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> 

In meinem

C: \ Windows \ System32 \ Treiber s \ etc \ hosts:

127.0.0.1  joomla.localhost 

Als ich http://joomla.localhost/installation alles navigieren in Ordnung ist. Ich kann Joomla installieren. Alles ist gut. Nach der Installation lösche ich den Installationsordner. Aber wenn ich versuche http://joomla.localhost joomla zu http://joomla.localhost/dashboard umleitet - ja wegen

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

in der index.php. Aber - ich habe Objekt nicht gefunden ... also was ist los? Ist ein bestimmter Eintrag in meinem Apache erforderlich?

Danke!

Antwort

0

Es war meine Schuld. Joomla erstellt diese 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 :-(

Ich weiß nicht, warum. Nach der Neuinstallation ist alles in Ordnung!