I've managed to solve with this apache2 conf. And buying a SSL certificate.
Yes, It's just a shame I had to buy a SSL certificate in order to receive api requests in my dev environment, just because AWS won't let the public address be accessed outside my browser :/
The whole Cloud9 migration for AWS was an awful experience.
<VirtualHost *:80> ServerName domain.com Redirect permanent / https://domain.com/ </VirtualHost> <VirtualHost *:8080> ServerName domain.com Redirect permanent / https://domain.com/ </VirtualHost> <VirtualHost *:8081> ServerName domain.com Redirect permanent / https://domain.com/ </VirtualHost> <VirtualHost *:8082> ServerName domain.com Redirect permanent / https://domain.com/ </VirtualHost> <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerName domain.com DocumentRoot /home/ubuntu/environment ProxyPreserveHost On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ SSLEngine on SSLCertificateFile /etc/ssl/certs/cert.crt SSLCertificateKeyFile /etc/ssl/certs/cert.key SSLCertificateChainFile /etc/ssl/certs/cert.crt <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> BrowserMatch "MSIE [2-6]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown </VirtualHost> </IfModule>
Can't ssh to EC2 after assigning an additional public ip(elastic ip)asked 9 months ago
Do Elastic Beanstalk Web Server Environment Need A Public Elastic IPasked 4 months ago
EC2 instance doesn't get a new public IP after Elastic IP is disassociatedasked 4 months ago
cloud9 preview running application on specific portasked 6 months ago
AWS Cloud9 "F5" Keybinding not working anymoreasked 7 months ago
Rails Cloud9 public preview w/ elastic ip not working with httpsasked 3 years ago
cloud9 preview keep reloading the application endlesslyAccepted Answerasked 3 months ago
Restoring an EC2 Instance - the Public IP is missingAccepted Answerasked 3 months ago
NAT Gateway w/ Elastic IP in Public + Private VPC with AWS Workspaces ..asked 2 years ago
Ping not working between two Elastic IP addresses.asked a month ago