SSL with virtual hosts
Posted by: stymiee (---.nwrknj.fios.verizon.net)
Date: July 16, 2010 04:05PM

I recently set up my installation of WAMP to use virtual hosts using this tutorial: [guides.jlbn.net]. I also set up SSL using this tutorial: [guides.jlbn.net].

The problem is whenever I call a virtual host using SSL it defaults to the root www directory instead of the virtual host www directory. So if I type in [sample] it shows me the root directory of C:\wamp\www instead of C:wamp\www\sample\www.

How do I make it so my virtual hosts can use SSL?

Options: ReplyQuote
Re: SSL with virtual hosts
Posted by: yfastud (Moderator)
Date: July 16, 2010 06:18PM


Options: ReplyQuote
Re: SSL with virtual hosts
Posted by: notaplayer83 (---.84.205-100.dyn.dsl.cantv.net)
Date: July 27, 2010 03:39PM

Hi smiling smiley

How can I force Apache to use SSL on a single page? I have this at the moment:

<VirtualHost :*80>
ServerName localhost
DocumentRoot C:/wamp/www
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} index.php
RewriteRule (.*) []%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>

but instead of redirecting me to the https it shows me this message that says forbidden and I have to manually go to the hettps version of index.php

What I'd like is to force some pages to use https and force other ones to use http.

Thanks in advance.
R.

I'm editing cause it shows a different thing when I post, where you see [] in the rewriterule it says "h t t p s : / /"



Edited 3 time(s). Last edit at 07/27/2010 05:18PM by notaplayer83.

Options: ReplyQuote


Sorry, only registered users may post in this forum.