a)
Hmm .. ne ich ich glaub die hab ich nich unterschlagen
.
Die vhost config sieht genau so aus. Da steht nichts weiteres mehr drin...
Wo bzw. müsste die "NameVirtualHost" Zeile denn stehen ?
b)
Ich mein das so:
Ich habe einen Ordner "Webseiten", in diesem befinden sich befinden sich bisher nur 2 Ordner. Ordner1 (root) soll der Ordner sein, in dem sich die Webseite für den direkten Zugriff über die IP befindet .
Im Ordner2 (fireballrs) befindet sich die Webseite, die aufgerufen werden soll, wenn ich über die Domain auf den Server zugreife.
Sprich:
http://123.123.123.123/ --> Ordner1 (root)
http://www.abcdefgh.de/ --> Ordner2 (fireballrs)
Ist das so möglich?! Es werden nämlich auch noch weitere Domains dazu kommen, welche jeweils ein eigenes Verzeichniss haben sollen/müssen.
PS: Der zugriff muss übers Internet erfolgen können, deshalb hilft mir doch die Windows Host-Datei recht wenig. Oder liege ich da falsch ?!
------------------------------------------------------------------
Entschuldigt, wenn das alles etwas anfängermäßig klingt
, aber ich bin auf dem Gebiet Webserver mit vhosts absolut neu und das was in der vhost config steht hat mich etwas überfordert
--> httpd-vhosts.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 @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>
<VirtualHost *>
ServerName 123.123.123.123
DocumentRoot "C:\Webseiten\root"
</VirtualHost>
<VirtualHost *>
ServerName www.abcdefgh.de
DocumentRoot "c:/Webseiten/fireballrs"
</VirtualHost>
Lg aus Bayern
!