Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: SSL httpd.conf configuration help for a newbie |
|
Author |
|
funkyspider
Joined: 17 Jan 2007 Posts: 16 Location: Oldham, UK
|
Posted: Thu 20 Mar '08 14:33 Post subject: SSL httpd.conf configuration help for a newbie |
|
|
I am totally stuck here as I am not a server bod, so am in need of help...
I have apache running on windows 2003, running a site http://www.madeupdomain.com on port 80. All ok there.
I want to run https://www.madeupdomain.com too.
I have the SSL cert sorted, and can see the little padlock thingy when i go to the https site, but I get a 403 forbidden error.
I added an extra Directory declaration in the httpd.conf with the follow sys links etc, and that worked, I saw my page, but the non SSL site stopped working. Not good.
So I'm stuck.
should i be using virtual hosts for the different ports? If so how?
Is someone able to provide an example of a typical httpd.conf for this setup so I can understand what needs to be done. I've searched a fair bit for a solution, but have never found a complete answer that i can understand.
Thanks |
|
Back to top |
|
glsmith Moderator

Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Thu 20 Mar '08 19:09 Post subject: |
|
|
Listen 80
Listen 443
NameVirtualHosts *:80
NameVirtualHosts *:443
<VirtualHost _default_:80>
DocumentRoot (same as host in main server config)
</VirtualHost>
<VirtualHost _default_:443>
DocumentRoot whatever
ServerName whatever (however match the "common name" used when creating certs)
whatever else you wish
</VirtualHost> |
|
Back to top |
|
funkyspider
Joined: 17 Jan 2007 Posts: 16 Location: Oldham, UK
|
Posted: Thu 20 Mar '08 19:12 Post subject: |
|
|
thank you, I will give it a try and see how i get on |
|
Back to top |
|
funkyspider
Joined: 17 Jan 2007 Posts: 16 Location: Oldham, UK
|
Posted: Thu 20 Mar '08 20:49 Post subject: |
|
|
ok, added that info.
apache starts, which is good
http site is fine
https site gives:
Forbidden
You don't have permission to access / on this server.
Do I need to add the Options Indexes FollowSymLinks etc for the ssl directory? |
|
Back to top |
|
funkyspider
Joined: 17 Jan 2007 Posts: 16 Location: Oldham, UK
|
Posted: Thu 20 Mar '08 22:27 Post subject: |
|
|
okay, with a bit of trial and a lot of error I got it working.
I added the following to the virtualhost declaration in the ssl.conf i'm using
Code: | <Directory "x:/xxx/xxx">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory> |
what it means, I don't know, but it was what the non ssl site uses. Hopefully someone can tell me if there's anything in there that shouldn't be for ssl |
|
Back to top |
|
|
|
|
|
|