fullyscintilla Posted August 23, 2009 Share Posted August 23, 2009 Hi all, I'm setting up a new webserver and I want to utilize SSL with it. But I'm afraid I've gotten myself stuck. I have already installed PHP5, Apache2.2/Mod_SSL, Open_SSL, MySQL5.1. I have my certificates prepared and waiting. I've configured my SSL_conf file. The SSL config file has virtual server settings inside. I set my SSL directory to be a different directory then my "htdocs" So i have "htdocs" for 80 and "SSLdocs" for 443. Now I have the SSL loadscript in my httpd_conf for apache set and my apache logs indicate that apache is indeed listening on ports 80 and 443. Apache starts NP. I can go to my browser type in http://mydomain.com and it brings up my site. I do the same only httpS://mydomain.com and it does nothing. I checked my router logs and I am recieving the requests for HTTPS on port 443 and sending them to the server. My question is why does it seem like Apache is the one not picking them up? My apache logs indicated access during HTTP connections but nothing gets put in the logs about HTTPS. So I'm stuck here and I can't figure out what to do. Thanks for you help all its very much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/ Share on other sites More sharing options...
steviewdr Posted August 23, 2009 Share Posted August 23, 2009 Do you have a "Listen 443" in your apache.conf? -steve Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-904532 Share on other sites More sharing options...
fullyscintilla Posted August 23, 2009 Author Share Posted August 23, 2009 Its in the SSL_conf file yes. The apache access.log shows that it starts listening on 443 and 80 upon start up. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-904613 Share on other sites More sharing options...
corbin Posted August 23, 2009 Share Posted August 23, 2009 Do you have a firewall that's blocking port 443 on the computer that's running Apache? Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-904623 Share on other sites More sharing options...
fullyscintilla Posted August 24, 2009 Author Share Posted August 24, 2009 No i've added port 443 to windows firewall aswell as my router. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-905033 Share on other sites More sharing options...
fullyscintilla Posted August 24, 2009 Author Share Posted August 24, 2009 When creating the site key am I sposed to use my internal IP for my common name since I am behind a router?? Or does that not matter? I used my domain name for my common name. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-905054 Share on other sites More sharing options...
steviewdr Posted August 25, 2009 Share Posted August 25, 2009 Can you go: telnet server.ip 443 it should give you a black screen. No matter what certs you have, telnet should connect. -steve Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-905822 Share on other sites More sharing options...
fullyscintilla Posted August 26, 2009 Author Share Posted August 26, 2009 Can you go: telnet server.ip 443 it should give you a black screen. No matter what certs you have, telnet should connect. -steve It gives me a blank cmd screen. So yes? I also found an error with the port in my windows firewall. I accidently set the port to 433 instead of 443. I can now make a connection to the server via "https:\\mydomain.com" but then I get a Forbidden 403 error. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-907126 Share on other sites More sharing options...
fullyscintilla Posted August 26, 2009 Author Share Posted August 26, 2009 apache error logs says [error] [client IP] client denied by server configuration: c:/mydirectory/index.html Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-907151 Share on other sites More sharing options...
steviewdr Posted August 27, 2009 Share Posted August 27, 2009 Looks like its a vhost config issue. Here's my configs, albeit on linux: http://wiki.kartbuilding.net/index.php/Apache_2_%26_SSL_-_PHP4_-_MySQL_4.1#Apache2_SSL_.26_Virtual_Hosting -steve Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-907839 Share on other sites More sharing options...
fullyscintilla Posted August 30, 2009 Author Share Posted August 30, 2009 I actually got the SSL working... by put my "sslDocs" directory INSIDE my "htdocs" directory. So the SSL bit is working to that end. The problem is that I don't want my SSLdocs directory in my htdocs directory. I want the SSLdocs and htdocs to be two seperate directories. So that you can only reach the SSLdocs directory via SSL and viceversa. Can this be done? Thanks again for all your help. Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-909372 Share on other sites More sharing options...
fullyscintilla Posted September 2, 2009 Author Share Posted September 2, 2009 Anyone have any ideas how to accomplish this? Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-910911 Share on other sites More sharing options...
fullyscintilla Posted September 4, 2009 Author Share Posted September 4, 2009 Special thanks to Stephen from another forum for helping me out with this. I wanted to share it here for anyone else that may be having this same issue. My problem was fixed by adding the following to my http.conf file <Directory "c:/Apache2.2/SSLdocs"> Options Indexes AllowOverride None Order allow,deny Allow from all SSLRequireSSL </Directory> And then just making sure to update the directory path in SSL.conf DocumentRoot "C:/Apache2.2/SSLdocs" Quote Link to comment https://forums.phpfreaks.com/topic/171511-solved-apache22-ssl-stuck/#findComment-912775 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.