vhost in der http-conf

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

vhost in der http-conf

Postby lugau45 » 07. February 2006 21:13

wo muss ich denn (pfad der conf datei) die vhost datei includen in der http-conf? ich finde die passende conf nicht. (sorry für die dumme frage)
bei xamp (windows) war es ja einfach:
-----------------------------------------------------
C/Programme/xampp/apache/conf
die httpd.conf
------------------------------------------------------
bei lampp??? (linux)

meine httpd.conf

# Virtual hosts
Include /opt/lampp/etc/extra/httpd-vhosts.conf

und die httpd-vhost.conf

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 logs/dummy-host.example.com-error_log
    #CustomLog logs/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 logs/dummy-host2.example.com-error_log
#    CustomLog logs/dummy-host2.example.com-access_log common
#</VirtualHost>

#NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin marco@....de
ServerName ....dyndns.org:80
DocumentRoot /opt/lampp/htdocs/welcome
 ServerAlias welcome
UseCanonicalName Off
</VirtualHost>



<VirtualHost *:80>
ServerAdmin marco@....de
ServerName masy.....dyndns.org:80
DocumentRoot /opt/lampp/htdocs/masy
UseCanonicalName Off
 ServerAlias masy

</VirtualHost>




<VirtualHost *:80>
ServerAdmin marco@....de
DocumentRoot /opt/lampp/htdocs/shop/catalog
ServerName shop.....dyndns.org:80
 ServerAlias shop
</VirtualHost>




<VirtualHost *:80>
ServerAdmin marco@....de
DocumentRoot /opt/lampp/htdocs/seiten
ServerName localhost.....dyndns.org:80
 ServerAlias seiten
</VirtualHost>



<VirtualHost *:80>
ServerAdmin marco@marco-doki.de
DocumentRoot /opt/lampp/htdocs/download
ServerName download.....dyndns.org
 ServerAlias download
</VirtualHost>


<VirtualHost *:80>
ServerAdmin marco@....de
DocumentRoot /opt/lampp/htdocs/test
ServerName test.....dyndns.org
ServerAlias  test
</VirtualHost>



<VirtualHost *:80>
ServerAdmin marco@....de
DocumentRoot /opt/lampp/htdocs/rallye
ServerName rallye.....dyndns.org
 ServerAlias rallye
UseCanonicalName Off
</VirtualHost>
irgendwas ist ja immer...
Skype me...
User avatar
lugau45
 
Posts: 106
Joined: 25. July 2004 10:31

Postby deepsurfer » 08. February 2006 13:25

# Virtual hosts
Include /opt/lampp/etc/extra/httpd-vhosts.conf


Damit hast du dein Frage schon beantwortet.
Kannst aber wie eigentlich schon in der httpd.conf vorhanden
Include etc/extra/httpd-vhost.conf
benutzen....
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian

Postby lugau45 » 08. February 2006 15:13

habe es hinbekommen über suse da kann man den apachen richtig konfigurieren xampp ist wieder runter.
irgendwas ist ja immer...
Skype me...
User avatar
lugau45
 
Posts: 106
Joined: 25. July 2004 10:31


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 3 guests