Hello Forum, I'm a newbie so the questions that I'm going to ask may strike you as obvious. I have installed WampServer Version 2.1 on Win 7 64bit and gone through a process to generate an ssl certificate for a domain.
This worked after a little struggle with configuring the files and replacing some system32 dll's.
I am now confused as to how I got it to work.
Rather than using Vhosts to create additional domains I add them to the bottom of the httpd-conf and modify hosts in windows directory.
I have a domain in windows|System32|drivers|etc|hosts
127.0.0.1 www.magentonp.com
httpd-conf:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
ServerName localhost
DocumentRoot "C:/wamp/www"
</VirtualHost>
<VirtualHost 127.0.0.1>
ServerName www.magentonp.com
DocumentRoot "C:/wamp/www/magentonp"
<Directory C:/wamp/www/magentonp>
Order Allow,Deny
Allow from all
</Directory>
</VirtualHost>
From:
[
www.expertcore.org]
C:\wamp\bin\apache\Apache2.2.17\conf\extra\httpd-ssl.conf
Change 3 files for 64bit Win 7 WAMP to work
cd\wamp\bin\apache\apache2.2.17\bin
c:\wamp\bin\apache\apache2.2.17\bin>
openssl genrsa -aes256 -out pass.key 2048
openssl rsa -in pass.key -out magentonp.key
openssl req -new -x509 -nodes -sha1 -key magentonp.key -out magentonp.crt -days 999 -config C:\wamp\bin\apache\apache2.2.17\conf\openssl.cnf
Inside Apache Conf extra httpd-ssl.conf
SSLSessionCache "shmcb:C:/wamp/bin/apache/Apache2.2.17/conf/ssl/logs/ssl_scache(512000)"
SSLCertificateFile "C:/wamp/bin/apache/Apache2.2.17/conf/ssl/magentonp.crt"
SSLCertificateKeyFile "C:/wamp/bin/apache/Apache2.2.11/conf/ssl/magentonp.key"
# General setup for the virtual host
DocumentRoot "C:/wamp/www/ssl/magentonp"
ServerName magentonp:443
ServerAdmin admin@localhost
ErrorLog "C:/wamp/bin/apache/Apache2.2.17/conf/ssl/logs/ssl_error.log"
TransferLog "C:/wamp/bin/apache/Apache2.2.17/conf/ssl/logs/ssl_access.log"
What I made to test it worked was a direcetory inside of wamp|www|ssl|magentonp|index.html.
When I placed the ssl directory inside the mageneonp directory with a test file the ssl certificate did not work.
To set up my magentonp directory to have ssl enabled what fix do I need to have
for [
www.magentonp.com]
and [
www.magentonp.com]
Sorry for stupid question but it is to do with virtual hosting or the file directories or ought i be naming the directory magentonp.com?
Another issue is where do I put the ssl directory inside the www or magentonp?
Thanks for any advice in anticipation of a swift response.