Fix Apache reverse proxy paths and context alignment in BaSyx V2 example #973
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
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:
Apache was configured to listen on port 80 and proxy requests via path-based routing:
-http://localhost/aas-registry/
-http://localhost/sm-registry/
-http://localhost/aas-discovery/
-http://localhost/aas-ui/
All components were successfully accessed via the reverse proxy after applying the changes.
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:
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.