[
https://issues.apache.org/jira/browse/AIRFLOW-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Toby Jennings updated AIRFLOW-3084:
-----------------------------------
Description:
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.
was:
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.
> 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
> Python 2.7
> Reporter: Toby Jennings
> Priority: Major
>
> 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)