Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get my server to handle HTTPS requests?

Status
Not open for further replies.

stevecanuck

Programmer
Jul 16, 2009
4
0
0
CA
Hi,

I've built an app in PHP and deployed it to a shared hosting site. I can access the pages on my site using HTTP. However, when I put the same URL using HTTPS, it gives me a 404 error.

What do I need to modify in order to tell Apache to point to the same filesystem location for SSL requests?

Side note: I haven't purchased an SSL certificate for my domain yet, but the hosting company has a cert they provide, and which I can essentially use by treating the mis-matched cert as an exception in my browser. Besides, the current deployment is a test environment so I don't want to purchase a cert for that.

Can anyone point me in the write direction? I am thinking I need to modify .htaccess, but I am hoping there is a simple recipe to follow.

Thanks,
Steve

This
 
What are you running apache on and how many ssl sites do you plan on running. The reason I ask is because with http sites you can use name based addressing for each domain but with https, you need ip based addressing. Your distro may already have an ssl vhost setup for an example. You will need to read the docs to see how to get it to work on your distro. Basically, you will be Listening on port 443 for https. You will also need to turn the ssl engine on and point to the certs but this is done differently on different distros so If you need more help, I can only give you some of the basics to get it up and going.

 
Thanks very much - your explanation about ip based addressing makes sense now. I added dedicated IP to my account and this solved my issue. I was hoping to hold off until just before I went to production, but it's only a couple of bucks a month. :)

Thanks,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top