AWS elasticbeanstalk documentation change
Summary
Updated mod_ssl package name, file paths, and added note for Amazon Linux 2023
Security assessment
Package name correction (mod24_ssl → mod_ssl) and path updates reflect environment changes. Added note about mod_wsgi installation addresses dependency management, not a direct security fix.
Diff
diff --git a/elasticbeanstalk/latest/dg/https-singleinstance-python.md b/elasticbeanstalk/latest/dg/https-singleinstance-python.md index c4405c0eb..7d4169f5f 100644 --- a//elasticbeanstalk/latest/dg/https-singleinstance-python.md +++ b//elasticbeanstalk/latest/dg/https-singleinstance-python.md @@ -11 +11 @@ Add the following snippet to your [configuration file](./ebextensions.html), rep - * The `packages` key uses yum to install `mod24_ssl`. + * The `packages` key uses yum to install `mod_ssl`. @@ -62 +62 @@ The example works only in environments using the [Python](./create-deploy-python - mod24_ssl : [] + mod_ssl: [] @@ -71 +71 @@ The example works only in environments using the [Python](./create-deploy-python - WSGIPythonHome /opt/python/run/baselinenv + WSGIPythonHome /var/app/venv/staging-LQM1lest @@ -80,2 +80,2 @@ The example works only in environments using the [Python](./create-deploy-python - Alias /static/ /opt/python/current/app/static/ - <Directory /opt/python/current/app/static> + Alias /static/ /var/app/current/static/ + <Directory /var/app/current/static> @@ -86 +86 @@ The example works only in environments using the [Python](./create-deploy-python - WSGIScriptAlias / /opt/python/current/app/application.py + WSGIScriptAlias / /var/app/current/application.py @@ -88 +88 @@ The example works only in environments using the [Python](./create-deploy-python - <Directory /opt/python/current/app> + <Directory /var/app/current> @@ -93,5 +93,5 @@ The example works only in environments using the [Python](./create-deploy-python - python-path=/opt/python/current/app \ - python-home=/opt/python/run/venv \ - home=/opt/python/current/app \ - user=wsgi \ - group=wsgi + python-path=/var/app/current \ + python-home=/var/app/venv/staging-LQM1lest \ + home=/var/app/current \ + user=webapp \ + group=webapp @@ -129,0 +130,4 @@ Avoid committing a configuration file that contains your private key to source c +###### Note for Amazon Linux 2023 environments + +On Amazon Linux 2023, `mod_wsgi` must be installed separately as it's not available in the package repositories. For installation instructions, see [mod_wsgi](https://pypi.org/project/mod-wsgi/) on PyPI. +