amazon-elastic-beanstalk

End of script output before headers: wsgi.py deploying python django to AWS EB

一曲冷凌霜 提交于 2021-02-11 01:34:41
问题 I can't get the Django app to deploy to AWS EB. I'm deploying an Django 1.7 app. The readout from the log files is as follows. I only get an internal server error and have no idea how to fix this. Has anyone run into this before? ------------------------------------- /opt/python/log/supervisord.log ------------------------------------- 2016-05-03 15:22:57,677 CRIT Supervisor running as root (no user in config file) 2016-05-03 15:22:57,690 INFO RPC interface 'supervisor' initialized 2016-05-03

Amazon Elastic Beanstalk - get visitor IP address (python)

懵懂的女人 提交于 2021-02-10 18:16:15
问题 My application is developed in python and the bottle framework. I am using following code snippet to get IP address of visitors to the page: user_ip = bottle.request.environ['REMOTE_ADDR'] It works fine on my local machine, however, after deployment to the AWS Beanstalk instance, I think I am getting the load balancer IP, as the user_ip reads something like 10.48.95.234. Is my thinking correct? If so, is there any way to obtain real visitor's ip address? 回答1: You are correct that the REMOTE

Configuring HTTPS on AWS Elastic Beanstalk / Rails

試著忘記壹切 提交于 2021-02-10 16:12:10
问题 I have deployed a Rails app to AWS Elastic Beanstalk. My setup works fine over HTTP, but I am having difficulty setting up HTTPS access. I have created a SSL certificate using ACM and set my load balancer to listen to port 443. So I have ports 80 and 443 listening over HTTPS, and both pointing to instance port 80. I have made sure my security group allows HTTPS. With this new configuration, requests do not seem to get through to the server. Have I missed something here? Many thanks EDIT:

Configuring HTTPS on AWS Elastic Beanstalk / Rails

让人想犯罪 __ 提交于 2021-02-10 16:10:46
问题 I have deployed a Rails app to AWS Elastic Beanstalk. My setup works fine over HTTP, but I am having difficulty setting up HTTPS access. I have created a SSL certificate using ACM and set my load balancer to listen to port 443. So I have ports 80 and 443 listening over HTTPS, and both pointing to instance port 80. I have made sure my security group allows HTTPS. With this new configuration, requests do not seem to get through to the server. Have I missed something here? Many thanks EDIT:

Is possible to use Amazon Elastic Beanstalk with SSL (HTTPS) without a Load Balancer?

别来无恙 提交于 2021-02-10 08:56:31
问题 From now on, my application needs a secure connection (HTTPS). I verify that most of tutorials for adding secure connections (https) on Amazon Web Services Elastic Beanstalk uses the Elastic Load Balancer as a tunnel. In my case I'm running a single instance, in fact I don't need a Load Balancer. How can I add a secure connection to my instance without a Elastic Load Balancer? Is that possible? I am using 64bit Amazon Linux 2017.03 v2.4.4 running PHP 7.0 Elastic Beanstalk. 回答1: That is

Restoring an Elastic Beanstalk RDS

强颜欢笑 提交于 2021-02-10 08:14:50
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Restoring an Elastic Beanstalk RDS

假装没事ソ 提交于 2021-02-10 08:09:52
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Restoring an Elastic Beanstalk RDS

邮差的信 提交于 2021-02-10 08:07:01
问题 When rebuilding an elastic beanstalk environment, EB automatically recreates a new and associated RDS instance. Once associated, RDS instances cannot be dissociated from an EB environment. I have a snapshot of the previous RDS prior to the rebuild. You cannot restore RDS snapshots to an existing RDS instance. How then, can I rebuild the environment with my desired snapshot attached? Or, how can I use my existing snapshot, or how can I migrate the existing snapshot data to the new database (I

Configuring nginx config files in AWS elasticbeanstalk with .ebextensions not found

白昼怎懂夜的黑 提交于 2021-02-10 06:23:06
问题 I am trying to enable https to my springboot webserver backend deployed on AWS elastic beanstalk with a self-signed SSL. I followed online tutorials and guides to change my nginx config with a new https-instance.config. files: /etc/nginx/conf.d/myconf.conf: mode: "conf" owner: root group: root content: | # HTTPS server server { listen 443; server_name localhost; ssl on; ssl_certificate /etc/pki/tls/certs/server.crt; ssl_certificate_key /etc/pki/tls/certs/server.key; ssl_prefer_server_ciphers

What's the recommended way to set networkaddress.cache.ttl in Elastic Beanstalk?

你说的曾经没有我的故事 提交于 2021-02-10 04:52:26
问题 I need to set Java's DNS cache TTL (networkaddress.cache.ttl) for an Amazon Elastic Beanstalk app running in Tomcat 8. Because EB can start and stop server instances at any time, I can't simply edit a Tomcat config file and the server and expect the change to persist. I tried setting the networkaddress.cache.ttl and sun.net.inetaddr.ttl environment variables, but those had no effect. Amazon says calling java.security.Security.setProperty("networkaddress.cache.ttl" , "60"); "will not work if