Virtual Hosts

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

Virtual Hosts

Postby ty2d » 21. May 2003 10:10

Hallo,

hab da ein kleines Problem, wo ich mich scheinbar etwas dämlich anstelle.

Ich will für mich virtuelle Hosts einrichten, die einmal unter dem Port 443 lauschen (also in der ssl.conf stehen) und dann noch virtuelle Hosts auf Port 80 (also in der httpd.conf) stehen.

Irgendwie haperts aber mit meiner Konfiguration. Immer wenn ich auf die beiden unterschiedlichen Hosts zugreifen will, bekomme ich die Passwort-Abfrage für das XAMPP-Verzeichnis. Was mache ich denn nur falsch.

Hier die SSL.CONF:

<VirtualHost domain.nummer1.com:443>
# General setup for the virtual host
DocumentRoot "/opt/lampp/htdocs/xampp"
ServerName localhost:443
ServerAdmin you@your.adress
ErrorLog logs/error_log
TransferLog logs/access_log
</VirtualHost>

Und die Httpd.Conf:
NameVirtualHost domain.nummer2.com:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
<VirtualHost domain.nummer2.com:80>
ServerAdmin you@your.adress
DocumentRoot /opt/lampp/htdocs/domain2
ServerName localhost:80
ErrorLog logs/tyoung2die-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Für jede Hilfe dankbar
ty2d
ty2d
 
Posts: 7
Joined: 13. May 2003 13:37

Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 15 guests