2 Webseiten auf einem Server

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

2 Webseiten auf einem Server

Postby Sven1987h » 09. November 2006 16:05

Hallo Alle

Ich habe ein Problehm und zwar habe ich mir vor einiger Zeit einen Rott Server zugelegt (bei 1&1) nun Möchte ich auf diesem mehrere Webseiten ablegen da ich schon etwas erfahrung mit Xampp habe, habe ich mal unter Google nachgeschaut ob es eine Möglichkeit gibt über Xampp mehrere Seiten Laufen zu lassen.
Ich habe zu diesem Tehma zwar einiges gefunden das Problehm das ich habe ist nun das Jede seite einen anderen lösungsweg aufzeigt Welcher ist der Richtige? vieleicht kann mir Jemand Die richtige Lösung sofort eintragen wäre echt Supper hier die Datei in die man die Vhosts eintragen muss aber wie??????
===============================================

#
# 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>
## ServerAdmin webmaster@dummy-host2.example.com
## DocumentRoot /www/docs/dummy-host2.example.com
## ServerName dummy-host2.example.com
## ErrorLog @rel_logfiledir@/dummy-host2.example.com-error_log
## CustomLog @rel_logfiledir@/dummy-host2.example.com-access_log common
##</VirtualHost>

===============================================

die erste Domain wäre http://www.Flirt-Fun.eu
Und die Zweite http://www.Blubber-Stube.de
wenn ihr noch mehr Daten Bracht kein Problehm

Ps: Ich muss mich für meine rechtschreibung entschuldigen. :oops:

Oder gibt es für soetwas auch eine einfachere Lösung alls Xampp
z.B. Iss? Die allerdings php und Mysql kann??????
Sven1987h
 
Posts: 2
Joined: 09. November 2006 15:47

Postby mATrIxLord » 09. November 2006 16:34

ich gebe dir meinen vhost text durch. ich hatte ein änliches problem, aber mit diesen setup solltest du klar kommen....

<VirtualHost *:80>
ServerAdmin webmaster@ra.com.py
DocumentRoot c:/xampp/xampp/htdocs/ra
ServerName www.ra.com.py
ErrorLog c:/xampp/xampp/htdocs/logs/ra_error_log #Dieses /logs/ MUSS vorhanden sein, sonst startet Apache nicht, datei macht er selber
<Directory "c:/xampp/xampp/htdocs/ra">
AllowOverride All
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

du musst auch den "NameVirtualHost *:80" unkommentieren, also die "##" löschen und darunter copierst du den text genau nach aber mit deine dateien....
mATrIxLord
 
Posts: 15
Joined: 31. October 2006 18:05

Postby Sven1987h » 09. November 2006 17:20

Ok habe es mal so gemacht wie du es Gesagt hast nur jetzt Startet Xampp garnicht mehr was habe ich Falschgemacht???

##VirtualHost *: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 Sven1987h@yahoo.de
##DocumentRoot C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt
##ServerName www.Flirt-Fun.eu
##ErrorLog C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\logs\
##<Directory "C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt">
##AllowOverride All
##Options IncludesNoExec
##Order allow,deny
##Allow from all
##</Directory>
##</VirtualHost>

Nochmal wäre es vieleicht mit iss einfacher zu Realisiren??
Sven1987h
 
Posts: 2
Joined: 09. November 2006 15:47

Postby mATrIxLord » 09. November 2006 18:24

Sven1987h wrote:Ok habe es mal so gemacht wie du es Gesagt hast nur jetzt Startet Xampp garnicht mehr was habe ich Falschgemacht???

##VirtualHost *: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 Sven1987h@yahoo.de
##DocumentRoot C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt
##ServerName www.Flirt-Fun.eu
##ErrorLog C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\logs\
##<Directory "C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt">
##AllowOverride All
##Options IncludesNoExec
##Order allow,deny
##Allow from all
##</Directory>
##</VirtualHost>

Nochmal wäre es vieleicht mit iss einfacher zu Realisiren??


da sind einige fehler drin. ich werde hier dein text etwas korrigieren.

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin Sven1987h@yahoo.de
DocumentRoot C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt
ServerName www.Flirt-Fun.eu
ErrorLog C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\logs\
<Directory "C:\Documents and Settings\Administrator\Desktop\Muell\xampp\htdocs\xampp\Flirt">
AllowOverride All
Options IncludesNoExec
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
mATrIxLord
 
Posts: 15
Joined: 31. October 2006 18:05


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 42 guests