Am Sonntag, 22. August 2004 23:59 schrieb Juergen L:
So auf die schnelle würde ich erstmal von dir wissen wollen ob du auch in der /etc/hosts auch den Virtuellen Host die IPs zu gewissen?
gruss tomek
Etc/hosts öffentlicheip www.domain1.de 127.0.0.1 localhost 192.168.90.50 amadalya öffentlicheip www.domain2.de
Willst Du IP-based Virtual Hosts oder Name-Based Vitual Hosts?
DocumentRoot /web/www.domain1.de/html ServerName www.domain1.de DirectoryIndex index.html index.htm index.php </VirtualHost>
NameVirtualHost meineipadresse
Ich nehm mal an, dass Du named-bases vitual hosts möchtest.
--- schnipp ---
#
# /etc/apache2/httpd.conf
#
[...]
### Virtual server configuration
############################################
[...]
# Please see the documentation at
# URL:http://httpd.apache.org/docs-2.0/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.
#
# Der nachfolgende Eintrag muss in die http.conf in /etc/apache2
# auf keinen Fall 'NameVirtualHost *:80' schreiben. Damit hat
# der Apache seine Probleme.
NameVirtualHost *
Include /etc/apache2/vhosts.d/*.conf
# Note: instead of adding your own configuration here, consider
# adding it in your own file (/etc/apache2/httpd.conf.local)
# putting its name into APACHE_CONF_INCLUDE_FILES in
# /etc/sysconfig/apache2 -- this will make system updates
# easier :)
--- schnipp ---
Für jeden virtuellen Host brauchst Du dann jeweils eine
irgendeinname.conf in /etc/apache2/vhosts.d
Auch Dein Hauptserver (default - localhost) ist ein virtueller Host
und sollte unter default.conf in /etc/apache2/vhosts.d gespeichert
werden.
Die Eintäge im Template sind natürlich entsprechend anzupassen.
--- schnipp ---
#
# VirtualHost template:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#