EC2onRails + SSL + Apache: no response to port 443

I am trying to configure SSL on EC2onrails with no luck. Currently, I can’t even telnet connect to my server on port 443, it just talks trying MY.IP.ADDRESS...and stays there endlessly. Telnet at 80 works fine.

That was my starting point. I followed the instructions exactly, and because I have a daddy go certificate, I created this custom ssl file by default, so I can add the SSLCertificateChainFile directive:

NameVirtualHost *:443
<VirtualHost *:443>

  Include /etc/apache2/sites-available/app.custom
  Include /etc/apache2/sites-available/app.common

  ErrorLog /mnt/log/apache2/error.log
  LogLevel warn

  CustomLog /mnt/log/apache2/access.log combined

  # see http://httpd.apache.org/docs/2.2/ssl/ssl_intro.html and http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
  SSLEngine On
  SSLCertificateFile    /etc/ec2onrails/ssl/cert/ec2onrails-default.crt
  SSLCertificateKeyFile /etc/ec2onrails/ssl/private/ec2onrails-default.key
  SSLCertificateChainFile    /etc/ec2onrails/ssl/cert/ec2onrails-chain.crt 

  RequestHeader set X_FORWARDED_PROTO 'https'
  ServerName MY_SERVER_NAME
</VirtualHost>

Note that I had to add

      ServerName MY_SERVER_NAME

Or I saw the following warning when running apache in the error.log file:

[Wed May 27 19:46:20 2009] [warn] RSA server certificate CommonName (CN) ` MY_SERVER_NAME' does NOT match server name!?

ec2onrails: server: enable_ssl, apache , 80 , apache 443. , apache ssl, gobbledygook , .

- SSL, EC2onRails? , ? ec2onRails 0.9.9.1, Ubuntu.

+3
1

, . Amazon EC2 " ". 443.

+5

Source: https://habr.com/ru/post/1709260/


All Articles