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

Serve hugo-generated page for xmpp.org/rfcs #15

Closed
cal0pteryx opened this issue Jan 25, 2022 · 1 comment
Closed

Serve hugo-generated page for xmpp.org/rfcs #15

cal0pteryx opened this issue Jan 25, 2022 · 1 comment

Comments

@cal0pteryx
Copy link
Member

Currently https://xmpp.org/rfcs redirects to https://xmpp.org/rfcs/, which is a directory listing.

In xsf/xmpp.org#975 I built a new index page for xmpp.org/rfcs. In order to make this work correctly, we would need a server direction for xmpp.org/rfcs. Since xmpp.org serves some RFC files itself (e.g. https://xmpp.org/rfcs/rfc3920.html), and it should continue to do so, we would need an exact match directive for that (and only that URL), I think.

@mwild1
Copy link
Contributor

mwild1 commented Apr 26, 2022

Done. Actually note that the hugo container is redirecting /rfcs -> /rfcs/ so it wasn't enough to just make that URL work.

The current rule in place will proxy /rfcs/ but not /rfcs/*. The only quirk here is if someone linked to /rfcs/index.html they'll get a 404 instead of seeing the index.html served by Hugo. I think this is fine...

Hopefully nothing else broke (I did a quick test), but I guess we'll hear if it did :)

@mwild1 mwild1 closed this as completed Apr 26, 2022
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

2 participants