Marian: virtueller host

Beitrag lesen

Hi Christoph Schnauß,

ok, nochmal:
ich hab in der httpd.conf folgendes eingegeben:

NameVirtualHost *
<VirtualHost *>
     ServerName localhost
     DocumentRoot "m:\htdocs"
</VirtualHost>

NameVirtualHost *
<VirtualHost *>
     ServerName example
     DocumentRoot "m:\htdocs\example"
</VirtualHost>

das stimmt doch soweit, oder?
dann ruf ich http://localhost auf, und folgende meldung kommt:

Bad Request

Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.

Hint: https://localhost/

mit ssl geht es dann.

das mit den anderen ports hab ich wieder geändert, ich hab die original-httpd.conf in die httpd.conf kopiert und außer dem oben nix verändert (nur ein paar aliases, aber andere ordnernamen, und wenn ich die beiden virtual-hosts weglass (siehe oben) geht es auch)

Verständlich? Gruß, Marian