teammapper: When running through proxy, not accessible
I am trying to run it through Apache2 proxy. Proxy does work and assets are there, but in your first HTML page you have got it this way:
<link href="[./assets/icons/icon-72x72.png](view-source:https://comm.rcdrun.com/assets/icons/icon-72x72.png)" rel="icon" sizes="72x72" type="image/png"/>
<link href="[./assets/icons/icon-192x192.png](view-source:https://comm.rcdrun.com/assets/icons/icon-192x192.png)" rel="icon" sizes="192x192" type="image/png"/>
<link href="[./assets/icons/icon-128x128.png](view-source:https://comm.rcdrun.com/assets/icons/icon-128x128.png)" rel="apple-touch-icon" sizes="128x128"/>
<link rel="icon" href="[./assets/icons/teammapper.svg](view-source:https://comm.rcdrun.com/assets/icons/teammapper.svg)" type="image/svg+xml"/>
<link rel="stylesheet" href="[styles.313093daef186797.css](view-source:https://comm.rcdrun.com/styles.313093daef186797.css)"></head>
<body>
<teammapper-root></teammapper-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<script src="[runtime.26e71b13e16b1767.js](view-source:https://comm.rcdrun.com/runtime.26e71b13e16b1767.js)" type="module"></script><script src="[polyfills.499163bcda29da7b.js](view-source:https://comm.rcdrun.com/polyfills.499163bcda29da7b.js)" type="module"></script><script src="[main.5287acb1c4a4e723.js](view-source:https://comm.rcdrun.com/main.5287acb1c4a4e723.js)" type="module"></script></body>
</html>
Instead you should avoid using ./ and rather use relative path.
My Apache2 configuration is as following:
# Proxy configuration for /mindmap
ProxyPreserveHost On
ProxyPass /mindmap http://localhost:81/
ProxyPassReverse /mindmap http://localhost:81/
# Optional: Rewrite rules to ensure consistency
RewriteEngine On
RewriteRule ^/mindmap$ /mindmap/ [R=301,L]
and it works well, but I cannot be making the HTML page inside of Docker container.
Is there way to change the front page so that it can be used with Proxy?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (8 by maintainers)
I think I have a solution, nearly finished. Itβs working for my local setup with a
/teammapperpath.Should be fixed in the new release.
Hi @gnusupport , I will double check it and come back to you shortly π