I think what most people are asking is:
"How do I make a sub directory turn to ssl?"
In this case it's not about virtual servers, it's about a .htaccess file. Assuming you have mod_rewrite on (the line in httpd.conf is:
LoadModule rewrite_module modules/mod_rewrite.so
and sould be uncommented so it's enabled.) Then you can place an .htaccess file in the subdirectory you want to redirect to sll that says:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.* [
]%{SERVER_NAME}%{REQUEST_URI} [L,R]
When you goto that subdir (let's say [
localhost]) it will redirect to [
localhost]
Keep in mind with this setup, if you goto something like:
[
localhost]
it redirects to:
[
localhost]
Does this solve your problems?
Also, if you're having problems starting up apache, and there's no error in te logs, goto the directory holding the apache exe (httpd.exe) via the command line. Then type:
httpd -t
This will check the syntax of the config files, and should return "Syntax OK" if you're ok. Use -S (capital S) to check vhosts if you're looking for a virtual host specific setup problem.