Virtual Hosts funktionieren nicht

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Virtual Hosts funktionieren nicht

Postby dennis2408 » 17. August 2009 09:24

Hallo Leute.
habe heute mein Xampp auf dem Server akualisiert.
Das heißt eine Sicherung des Ordners gemacht, Deinstalliert und die neue Version installiert.
Dann den Data ordner aus dem Backupordner in den neuen mysql Ordner gepackt,
die Vhosts Einträge in die neue Datei Kopiert, und noch einige Änderungen in der php.ini vorgenommen.
apache und co neugestartet.
Nun folgendes Problem, alle Domains Zeigen die selbe seite an, und zwar die als erstes in der httpd-vhosts.conf eingetragen ist.
Scheinbar ignoriert er alle Einträge die danach kommen.
Tausche ich den ersten Eintrag nun gegen einen anderen aus, werden auf allen Domains dann diese Daten geladen.
Ich hoffe mir kann jemand ganz schnell helfen, damit ich die anderen Seiten auch wieder am laufen bekomme.
Desweiteren komme ich nicht mehr in dem Adminbereich vom phpbb3 Forum, ich komme zwar rein, er wird aber nicht mehr angezeigt,
nur noch ein wirres zeug im oberen Bereich der Seite.
Habe jetzt erst mal wieder den alten Xampp Ordner aktiviert damit die Seiten erst mal wieder laufen,
aber ich hoffe jemand hat eine Lösung für mein Problem.

Greetz Dennis
dennis2408
 
Posts: 14
Joined: 27. January 2009 18:51

Re: Virtual Hosts funktionieren nicht

Postby Wiedmann » 17. August 2009 10:47

Nun folgendes Problem, alle Domains Zeigen die selbe seite an, und zwar die als erstes in der httpd-vhosts.conf eingetragen ist.

Evtl. ein fehlendes "NameVirtualHosts".
Aber ohne deine Konfiguration zu kennen, ist das weniger als ein Blick in die Glaskugel...

Desweiteren komme ich nicht mehr in dem Adminbereich vom phpbb3 Forum

Da sollte das Support/User Forum der Software phpbb3 sich auskennen.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Virtual Hosts funktionieren nicht

Postby dennis2408 » 17. August 2009 12:38

Hier mal 2 Beispiele aus der httpd-vhosts.conf.
Im Xampp 1.7.0 Funktionieren sie Problemlos,
in dem aktuellen leider nicht.
Code: Select all
<VirtualHost *:80>
    ServerName h1447238.stratoserver.net
    ServerAlias www.h1447238.stratoserver.net
    ServerAdmin D.Heinzen@gmx.de
    DocumentRoot "D:/Inetpub/wwwroot"
<Directory "D:/Inetpub/wwwroot">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
   
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName trt-racing.de
    ServerAlias www.trt-racing.de
    ServerAdmin D.Heinzen@gmx.de
    DocumentRoot "D:/Inetpub/wwwroot/trt_racing/forum"
<Directory "D:/Inetpub/wwwroot/trt_racing/forum">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
   
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>   
</VirtualHost>
dennis2408
 
Posts: 14
Joined: 27. January 2009 18:51

Re: Virtual Hosts funktionieren nicht

Postby Wiedmann » 17. August 2009 12:43

Siehe oben (die Vermutung hat sich bestätigt).
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Virtual Hosts funktionieren nicht

Postby dennis2408 » 17. August 2009 12:48

Muss das bei jedem Host stehen?
Einmal steht es ja drin, über den Beispiel Einträgen.
Code: Select all
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
##<VirtualHost *:80>
##    ServerAdmin webmaster@dummy-host.example.com
##    DocumentRoot /www/docs/dummy-host.example.com
##    ServerName dummy-host.example.com
##    ServerAlias www.dummy-host.example.com
##    ErrorLog @rel_logfiledir@/dummy-host.example.com-error_log
##    CustomLog @rel_logfiledir@/dummy-host.example.com-access_log common
##</VirtualHost>

<VirtualHost *:80>
    ServerName h1447238.stratoserver.net
    ServerAlias www.h1447238.stratoserver.net
    ServerAdmin D.Heinzen@gmx.de
    DocumentRoot "D:/Inetpub/wwwroot"
<Directory "D:/Inetpub/wwwroot">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
   
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName trt-racing.de
    ServerAlias www.trt-racing.de
    ServerAdmin D.Heinzen@gmx.de
    DocumentRoot "D:/Inetpub/wwwroot/trt_racing/forum"
<Directory "D:/Inetpub/wwwroot/trt_racing/forum">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
   
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All

    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
</Directory>   
</VirtualHost>
dennis2408
 
Posts: 14
Joined: 27. January 2009 18:51

Re: Virtual Hosts funktionieren nicht

Postby Wiedmann » 17. August 2009 13:17

Muss das bei jedem Host stehen? Einmal steht es ja drin, über den Beispiel Einträgen.

Einmal langt.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Virtual Hosts funktionieren nicht

Postby Nobbie » 17. August 2009 13:20

Wenn ich von hier die beiden vHosts www.trt-racing.de und h1447238.stratoserver.net aufrufe, bekomme ich verschiedene Seiten angezeigt (und offensichtlich die entsprechend konfigurierten).
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Virtual Hosts funktionieren nicht

Postby dennis2408 » 17. August 2009 13:56

Ja weil im Moment die alte Xampp Version wieder läuft, damit die Seiten funktionieren
Wiedmann wrote:
Muss das bei jedem Host stehen? Einmal steht es ja drin, über den Beispiel Einträgen.

Einmal langt.

Heißt das ich muss das nur Woanders eintragen, zb Direkt über den ersten Host Eintrag?
Weil drinstehen tut es ja, nur halt weiter oben.

Greetz Dennis
dennis2408
 
Posts: 14
Joined: 27. January 2009 18:51

Re: Virtual Hosts funktionieren nicht

Postby Wiedmann » 17. August 2009 13:59

Heißt das ich muss das nur Woanders eintragen

Nein. Es muss nur überhaupt da sein.

(Und ansonsten: siehe "Nobbie".)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 51 guests