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

cnm/export/cnm.pdf path is expected #2

Open
slominskir opened this issue Nov 29, 2023 · 1 comment
Open

cnm/export/cnm.pdf path is expected #2

slominskir opened this issue Nov 29, 2023 · 1 comment

Comments

@slominskir
Copy link
Member

We've switched to using the smoothness lib provided PDF servlet, but the CNM app historically exposed the PDF at the path cnm/export/cnd.pdf. To be consistent with Excel and HTML export we may want to expose the PDF export at that path as well.

@slominskir
Copy link
Member Author

If we do update this we need to update cebaf:/etc/httpd/conf.local/cnd_proxy..conf and replace

RedirectMatch 301 /cnd/cnd.pdf https://ace.jlab.org/cnm/convert?filename=cnd.pdf\&type=pdf\&url=%2Fcnm%2Fexport%2Fcnd.html

with:

ProxyPass /cnd/cnd.pdf https://ace.jlab.org/cnm/export/cnd.pdf

Aside: during the migration from accweb the redirects for these exports didn't propagate and the config on cebaf server needed to be updated directly. This is due to paths after the host not being identical - specifically the cnm path part is replaced with cnd. Also since the PDF path changed during migration the old path on accweb no longer works (I could add a rewrite/redirect, but doesn't seem critical - I did add this rewrite/redirect on cebaf).

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

No branches or pull requests

1 participant