zaiyon
12.07.04, 14:47
Hi, und zwar habe ich folgendes Problem, mehrere Domains zeigen auf meinen Rechner und ihc habe die vhosts wie folg konfiguriert:
################# vhosts.conf
#This is where we store the VirtualHosts configuration.
#
#Since Apache 1.3.19, we modified the setup to include some nice tricks:
#
#- Added SuExecUserGroup [user] [group] directive so VirtualHosts now work with
# suexec directive. If set, Apache will run all cgi scripts under that
# user and group (provided the uid and gid are > 1000 for security). The
# directories and cgi files *must* belong to that user/group for the
# feature to work
#- We added the Setenv VLOG directive. This works in conjunction with
# the CustomLog in commonapache2.conf. When Setenv VLOG is set, apache will
# create a /var/log/apache2/VLOG-YYYY-MM-<ServerName>.log instead of logging
# to access_log. Use this instead of defining a special logfile for
# each vhost, otherwise you eat up file descriptors.
#- You can also specify a path for the VLOG for each Vhost, for example,
# to place the logs in each user's directory. However, if you want to
# use the file for accounting, place it in a directory owned by root,
# otherwise the user will be able to erase it.
#- I suggest only including the ErrorLog *only* if the vhost will use
# cgi scripts. Again, it saves file descriptors!
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#SuExecUserGroup jmdault jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.zaiyon.de.vu
ServerAlias zaiyon.de.vu *.zaiyon.de.vu
DocumentRoot /var/www/zaiyon.de.vu
</VirtualHost>
<VirtualHost *:80>
ServerName www.fjsoft.de.vu
ServerAlias fjsoft.de.vu *.zaiyon.de.vu
DocumentRoot /var/www/fjsoft.de.vu
</VirtualHost>
<VirtualHost *:80>
ServerName www.jempire.de
ServerAlias jempire.de *.jempire.de
DocumentRoot /var/www/jempire.de
</VirtualHost>
Gehe ich auf zaiyon.de.vu, komme ihc erfolgreich auf diese Seite, gehe ich allerdings auf fjsoft.de.vu, komme ich auf exakt dieselbe Seite. Ums kurz zu machen: Es wird immer (egal welche Adresse der drei ich eingebe) der vhost an erster Stelle erreicht...
Die Domains zeigen übrigens alle auf www.zaiyon.dyndns.org, mein Rechner auf dem der Apache läuft heisst zion/www, wobei www ein Alias ist... Auch wenn ich auf www.zaiyon.dyndns.org oder zion.zaiyon.dyndns.org gehe, lande ich auf der index.php in /var/www/zaiyon.de.vu, ich bin wirklcih mti meinem Latein am Ende...
Danke im Vorraus für Hilfe
################# vhosts.conf
#This is where we store the VirtualHosts configuration.
#
#Since Apache 1.3.19, we modified the setup to include some nice tricks:
#
#- Added SuExecUserGroup [user] [group] directive so VirtualHosts now work with
# suexec directive. If set, Apache will run all cgi scripts under that
# user and group (provided the uid and gid are > 1000 for security). The
# directories and cgi files *must* belong to that user/group for the
# feature to work
#- We added the Setenv VLOG directive. This works in conjunction with
# the CustomLog in commonapache2.conf. When Setenv VLOG is set, apache will
# create a /var/log/apache2/VLOG-YYYY-MM-<ServerName>.log instead of logging
# to access_log. Use this instead of defining a special logfile for
# each vhost, otherwise you eat up file descriptors.
#- You can also specify a path for the VLOG for each Vhost, for example,
# to place the logs in each user's directory. However, if you want to
# use the file for accounting, place it in a directory owned by root,
# otherwise the user will be able to erase it.
#- I suggest only including the ErrorLog *only* if the vhost will use
# cgi scripts. Again, it saves file descriptors!
################# IP-based Virtual Hosts
#<VirtualHost 192.168.2.100>
#SuExecUserGroup jmdault jmdault
#DocumentRoot /home/jmdault/public_html
#ServerName test2.com
#Setenv VLOG /home/jmdault/logs
#ErrorLogs /home/jmdault/test2-error_log
#RewriteEngine On
#RewriteOptions inherit
#</VirtualHost>
################# Named VirtualHosts
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.zaiyon.de.vu
ServerAlias zaiyon.de.vu *.zaiyon.de.vu
DocumentRoot /var/www/zaiyon.de.vu
</VirtualHost>
<VirtualHost *:80>
ServerName www.fjsoft.de.vu
ServerAlias fjsoft.de.vu *.zaiyon.de.vu
DocumentRoot /var/www/fjsoft.de.vu
</VirtualHost>
<VirtualHost *:80>
ServerName www.jempire.de
ServerAlias jempire.de *.jempire.de
DocumentRoot /var/www/jempire.de
</VirtualHost>
Gehe ich auf zaiyon.de.vu, komme ihc erfolgreich auf diese Seite, gehe ich allerdings auf fjsoft.de.vu, komme ich auf exakt dieselbe Seite. Ums kurz zu machen: Es wird immer (egal welche Adresse der drei ich eingebe) der vhost an erster Stelle erreicht...
Die Domains zeigen übrigens alle auf www.zaiyon.dyndns.org, mein Rechner auf dem der Apache läuft heisst zion/www, wobei www ein Alias ist... Auch wenn ich auf www.zaiyon.dyndns.org oder zion.zaiyon.dyndns.org gehe, lande ich auf der index.php in /var/www/zaiyon.de.vu, ich bin wirklcih mti meinem Latein am Ende...
Danke im Vorraus für Hilfe