- Le plus récent
- Le plus de votes
- La plupart des commentaires
I managed to fix it by actually switching to a load-balanced instance. From there the process was much easier. These are the steps I did:
- create a new load-balanced instance
- create a new SSL certificate for the custom domain from the AWS Certificate Manger (used both with and without the www prefix)
- create two A-records aliases for the custom domain using both with and withouth the www prefix
- create a HTTPS inbound rule on the instance's security group
- added a new HTTPS listener using the new certificate
- changed the HTTP listener to redirect to HTTPS
Since the process of creating a load balanced instance is as easy as a single instance one, it is worth doing it this way rather then going the hard way of overwriting the server config files.
Hello.
Is it possible that the certificate is not reflected due to a problem with the browser's cache?
By the way, I think you could check whether the certificate was reflected by accessing the website at "https://www.my-custom-domain.com" and checking the lock mark in the upper left of the browser.
As mentioned in the documentation, please restart Nginx after completing the configuration.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/https-singleinstance-java.html
The container_commands key restarts the nginx server after everything is configured so that the server loads the nginx configuration file.
Contenus pertinents
- demandé il y a 2 ans
- demandé il y a 5 mois
- demandé il y a 2 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
I'm not sure if it can be a browser caching issue since it's not working in neither one of the browsers I have (Chrome, Firefox and Edge - which I'm not using at all). Beside this I don't have the lock mark on the upper left of the browser's URL address like it should, it just says "Not secure". Also, shouldn't the command "service nginx restart" that you are talking about should automatically restart the nginx server itself after it's deployed?