ssl - Point subdomain to EC2 instance through https -
i have managed redirect subdomain hosted on host provider (1and1) ec2 instance on aws implementing following steps:
- creating elastic ip on ec2 instance
- adding elastic ip address dns settings of subdomain
question: how can allow https request? subdomain has working ssl certificate when call https://mysubdomain.example.com getting following error:
this site can't reached, mysubdomain.example.com refused connect.
the security group setup on ec2 instance allows https, although seems port 443 not correctly open typing:
sudo netstat -tlnp returns:
tcp 0 0 0.0.0.0:22 0.0.0.0:* listen 10144/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* listen 3081/master tcp6 0 0 :::80 :::* listen 16084/httpd tcp6 0 0 :::22 :::* listen 10144/sshd tcp6 0 0 ::1:25 :::* listen 3081/master any idea? ec2 instance running on apache virtualhost. many thanks.
i running on apache , .conf looks this:
<virtualhost *:80> servername xx.xx.xx.xx wsgipassauthorization on wsgidaemonprocess bottle_app threads=5 python-path=/var/www/bottle_app/:/usr/lib/python2.7/site- packages/:/usr/lib64/python2.7/site-packages/ wsgiscriptalias / /var/www/bottle_app/app.wsgi <directory /var/www/bottle_app> wsgiprocessgroup bottle_app wsgiapplicationgroup %{global} wsgiscriptreloading on order deny,allow allow # require granted </directory> errorlog /var/log/httpd/errors.log customlog /var/log/httpd/requests.log combined </virtualhost>
your virtualhost configuration apache indicates serve on port 80 , dont have tls set up. need generate or acquire certificate , set https access in apache. please read following articles. if use self-generated certificate not trusted browsers.
Comments
Post a Comment