SSL enabled site from localhost client computers
Posted by: mawiahl (27.63.128.---)
Date: March 18, 2016 04:11PM

I managed to create my own OPENSSL enabled sites in localhost wampserver 2.5. I have 7 clients computers. I can access the site from these 7 clients computer without the []. I installed wamp on my Drive C:/wamp but I put my site file in drive D:/sites. So my httpd-ssl.conf file goes:

httpd-ssl.conf

<VirtualHost *:443>
DocumentRoot "D:/sites"
ServerName local.client:443
ServerAdmin admin@gmail.com
ErrorLog "c:/wamp/logs/error.log"
TransferLog "c:/wamp/logs/access.log"
SSLEngine on
#SSLCertificateFile and ssl related goes here
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "D:/sites">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
#custom log
</VirtualHost>

When I try to access the site from the 7 client machines using [local.client], It points to wamp default site directory (www). There is no error message as well. On the server machine (the machine where I installed wamp), it is working fine. So for client machines, I added the same virtualhost tag to httpd-vhosts.conf and added the following code for port 80 so that I can access without https://

httpd-vhosts.conf

<VirtualHost *:443>
DocumentRoot "D:/sites"
ServerName local.client:443
ServerAdmin admin@gmail.com
ErrorLog "c:/wamp/logs/error.log"
TransferLog "c:/wamp/logs/access.log"
SSLEngine on
#SSLCertificateFile and ssl related goes here
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "D:/sites">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
BrowserMatch "MSIE [2-5]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
#custom log
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "D:/sites"
ServerName local.client
<Directory "D:/sites">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
</VirtualHost>

So the http:// is working great in the 7 client machines. But https:// is not working at all. There is no error message, it just directs me to index.php in www folder. So can anyone help me figure out where I go wrong, or is this something possible to do in apache2.4.9? Any advises and suggestions are welcome.



Edited 1 time(s). Last edit at 03/18/2016 04:13PM by mawiahl.

Options: ReplyQuote


Sorry, only registered users may post in this forum.