Pregunta

I'm using AWS EB Python container.

I wish to change Apache mod_wsgi configuration, but it's automatically overwritten by default setting after EC2 instance reboot. (or, re-deployment of application version).

How can I use my own mod_wsgi configuration smart way? As I understood, it's overwritten by config.py file in /opt/elasticbeanstalk/hooks folder.

¿Fue útil?

Solución

This is not elegant way I think, but for someone who can met similar situation. Try to modify config.py file in /opt/elasticbeanstalk/hooks folder. You can find APACHE_TEMPLATE variable. Please add your own configuration to this string. And, upload your new S/W version. That's all.

UPDATE: I found better solution: - How to force https on elastic beanstalk?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top