Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix webSiteRootURL if Apache Alias directive is used #9885

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manu0401
Copy link
Contributor

When Apache Alias directive is used to map AVideo installation on a given URL prefix, webSiteRootURL should be derived from the CONTEXT_PREFIX environment variable

superseeds
#9884
#9883

When Apache Alias directive is used to map AVideo installation on
a given URL prefix, webSiteRootURL should be derived from the
CONTEXT_PREFIX environment variable

superseeds
WWBN#9884
WWBN#9883
@DanielnetoDotCom
Copy link
Member

Analyzing this, $_SERVER['CONTEXT_PREFIX'] is only used in IIS with FastCGI. AVideo is only tested on Apache running on Ubuntu and is not designed for IIS, so it may not work properly on it. The proposed change is unnecessary since $_SERVER['CONTEXT_PREFIX'] is not relevant for Apache or Nginx, which are the supported environments.

@manu0401
Copy link
Contributor Author

manu0401 commented Feb 15, 2025 via email

@manu0401
Copy link
Contributor Author

manu0401 commented Feb 16, 2025

CONTEXT_PREFIX is set in Apache's httpd/server/util_script.c from ap_context_prefix(), a function that can be found in httpd/server/core.c

This is a recent addition, it is not yet fully documented, but it is not specific to any particular setup or OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants