Skip to content

Conversation

@rheesk22mi
Copy link

Fix Apache reverse proxy configuration in BaSyx V2 example.

The original httpd.conf did not reflect the actual servlet context paths used by the BaSyx services, which caused 404 and proxy errors. This commit updates ProxyPass rules, adds trailing-slash redirects, and removes an invalid root proxy entry so that the example works as expected when deployed via docker-compose.

Pull Request Template

Description of Changes

This pull request fixes the Apache reverse proxy configuration in the BaSyx V2 example setup.

While following the example configuration provided in the repository, several endpoints were not reachable as documented. The main issue was a mismatch between the httpd.conf ProxyPass paths and the actual servlet context paths defined in docker-compose.yml.

The following adjustments were made:

  • Updated ProxyPass routes to match the actual context paths (e.g., /aas-env instead of /aas-environment)
  • Aligned the AAS Web UI proxy path with the configured BASE_PATH (/aas-ui)
  • Added explicit trailing-slash redirects to prevent requests (e.g., /aas-env) from falling through to unintended proxy rules
  • Disabled the root (/) ProxyPass pointing to a non-existing service, which previously caused 500 proxy errors due to DNS resolution failure

With these changes, all BaSyx components are accessible through the Apache reverse proxy as intended.

Related Issue

No existing issue was referenced.

This pull request addresses inconsistencies observed while setting up the Apache-based BaSyx V2 example.

BaSyx Configuration for Testing

The following setup was used for validation:

AAS Files Used for Testing

he default AAS files provided in the example (./examples/BaSyxReverseProxy/aasdirectory) were used for validation.
No additional AAS files were required to reproduce or verify the issue.

Additional Information

The issue was primarily caused by inconsistencies between:

  • Documented example paths
  • Servlet context paths defined in docker-compose.yml
  • Apache ProxyPass configuration

Additionally, requests without trailing slashes (e.g., /aas-env) could fall through to the root proxy rule and cause DNS-related proxy errors. This has been mitigated by adding explicit redirect rules.

These changes improve stability and make the example setup work as expected when deployed using the provided Docker configuration.

Fix Apache reverse proxy configuration in BaSyx V2 example.

The original httpd.conf did not reflect the actual servlet context paths used by the
BaSyx services, which caused 404 and proxy errors. This commit updates ProxyPass rules,
adds trailing-slash redirects, and removes an invalid root proxy entry so that the
example works as expected when deployed via docker-compose.
@aaronzi
Copy link
Member

aaronzi commented Feb 11, 2026

Thanks for fixing the example. Seems like those mistakes were missed in the review.

Could you please sign the Eclipse Contributor Agreement with the same mail that you used to sign your commits. Otherwise I can't merge your PR.

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.

3 participants