http & https not separated

Problems with the Windows version of XAMPP, questions, comments, and anything related.

http & https not separated

Postby magren » 24. November 2007 00:08

Bare with me, i'm new to apache ;)
I have two websites running on the same apache. and
The first site ( will run on port 80 only and the other ( will be an https web (443) only.

My problem is that i can surf to and then the site loads.
Vice versa when i surf to the site loads.

What have i missed?
<VirtualHost *:80>
DocumentRoot "D:/xampp/htdocs/www-site"
## ErrorLog @rel_logfiledir@/
## CustomLog @rel_logfiledir@/ common

<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "D:/xampp/htdocs/portal-site"
Posts: 1
Joined: 23. November 2007 23:42

Postby LooseCannon » 26. November 2007 15:07

Hello and Welcome magren.

I'm barely beyond being 'new' to Apache, so just some simple points from me and they might be inappropriate. Shared learning and all that... Here goes.

DocumentRoot doesn't use speech marks, so try:
DocumentRoot D:/xampp/htdocs/www-site
DocumentRoot D:/xampp/htdocs/portal-site

The VirtualHost bracket for the second vhost should read:
<VirtualHost _default_ *:443>
ie, add a space and asterix before the collon, if you want requests from all hosts to be answered.
User avatar
Posts: 162
Joined: 18. September 2007 12:07
Location: Hampshire, UK

Return to XAMPP for Windows

Who is online

Users browsing this forum: maxkoruts and 57 guests