Toby Jennings created AIRFLOW-3084:
--------------------------------------
Summary: Webserver Returns 404 When base_url is set via Environment
Key: AIRFLOW-3084
URL: https://issues.apache.org/jira/browse/AIRFLOW-3084
Project: Apache Airflow
Issue Type: Bug
Components: webserver
Affects Versions: 1.10.0
Environment: Docker
Reporter: Toby Jennings
Attempting to mount Airflow at a subpath beneath root (see AIRFLOW-1755).
When Airflow is configured via the environment variable
"AIRFLOW__WEBSERVER__BASE_URL" the web server returns a 404 for all paths. When
"base_url" is set directly in airflow.cfg, the web server works as expected.
Documentation suggests that using env to configure Airflow should be sufficient.
Steps to reproduce:
# Install Airflow.
# Set AIRFLOW__WEBSERVER__BASE_URL to "http://localhost:8080/airflow"
# Access Airflow at "/", "/airflow" or any other path.
# Webserver returns 404 ("Apache Airflow is not at this location.")
Workaround:
# Install Airflow
# Set "base_url" to "http://localhost:8080/airflow" in airflow.cfg
# Access Airflow at "/airflow"
# Webserver works as intended.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)