title: How to implement SSL when accessing server through ip address?
body: <p>I am accessing my server in my phone through the ip address of the server (ex. <a href="http://13.70.72.102:7777/test/index.php" rel="nofollow noreferrer">http://13.70.72.102:7777/test/index.php</a>) the ip address (13.70.72.102) is the public address of my server. When I change the http into a https I am getting a "This site can’t provide a secure connection (ERR_SSL_PROTOCOL_ERROR)". I can add a SSL to my virtual host but to access my virtual host I need to edit all the host file in each of my device that is why I am accessing my server through my ip address. How can I add a SSL to this?</p>
  
  <p>Here is my host file:</p>
  
  <pre><code>127.0.0.1       server.test
  13.70.72.102    server.test
  </code></pre>
  
  <p>Here is my httpd-vhost.conf</p>
  
  <pre><code>&lt;VirtualHost *:7777&gt;
  DocumentRoot "C:\xampp\htdocs"
    ServerName server.test
    &lt;Directory "C:\xampp\htdocs"&gt;
      Require all granted
      AllowOverride All
      Order allow,deny
      Allow from all
    &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:443&gt;
       DocumentRoot "C:/xampp/htdocs"
       ServerName server.test
       SSLEngine on
       SSLCertificateFile "crt/server.test/server.crt"
       SSLCertificateKeyFile "crt/server.test/server.key"
       &lt;Directory "C:\xampp\htdocs"&gt;
          Require all granted
          AllowOverride All
          Order allow,deny
          Allow from all
        &lt;/Directory&gt;
   &lt;/VirtualHost&gt;
  </code></pre>