A
A
Alexander2018-05-24 09:32:58
Apache HTTP Server
Alexander, 2018-05-24 09:32:58

Why can't a site on apache open via https?

Hello!
I have a site on local hosting.
platform - Windows 7
Server - XAMPP , includes Apache/2.4.17

Bought a GeoTrust certificate .

In httpd.conf I uncommented the lines:

LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


In httpd-ssl.conf I wrote:
<VirtualHost *:443>
SSLEngine on
DocumentRoot "C:/xampp/htdocs/sitename"
ServerName sitename.ru
ServerAdmin [email protected]
ErrorLog "C:/xampp/apache/logs/error.log"
TransferLog "C:/xampp/apache/logs/access.log"
SSLCertificateFile "c:/xampp/apache/conf/key/domain.crt"
SSLCertificateKeyFile "c:/xampp/apache/conf/key/private.key"
SSLCertificateChainFile "c:/xampp/apache/conf/key/chain.crt"
</VirtualHost>


When I go to https://localhost , the browser opens the site.
When I go to the domain name https://sitename.ru , it just doesn't find it (I can't access it).
Through normal http everything works, but through https nothing. What's the catch? I think that the gateway can block port 443? After all, everything opens through the local ip. Help, please, to understand. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-05-25
@webexpensive

Issue resolved. On the router it was necessary to forward port 443.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question