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

Make 404 Page Accessible In Deployments #2489

Closed
dcampbell24 opened this issue Nov 19, 2024 · 3 comments
Closed

Make 404 Page Accessible In Deployments #2489

dcampbell24 opened this issue Nov 19, 2024 · 3 comments
Labels
C-question Category: A question on how to do something

Comments

@dcampbell24
Copy link
Contributor

dcampbell24 commented Nov 19, 2024

Question

I want to automatically run mdBook as a service. What should I make the systemd .service file look like? The idea is that I am running the Rust mdBook html server instead of a server like Apache, so I can get the mdBook 404 pages.

Version

mdbook v0.4.42

@dcampbell24 dcampbell24 added the C-question Category: A question on how to do something label Nov 19, 2024
@dcampbell24
Copy link
Contributor Author

Another solution would be to add an option to generate .htaccess or similar files for deployment and add docs for deployment. It looks like this was suggested in the initial 404 page issue, but then never done.

@dcampbell24 dcampbell24 changed the title systemd .service File Make 404 Page Accessible In Deployments Nov 19, 2024
@ehuss
Copy link
Contributor

ehuss commented Nov 19, 2024

Can you say more about your use case? The built-in web server should not be used for deployment, only local development.

If you want to add instructions for setting up a service like Apache, that would probably best go on something like the wiki.

@dcampbell24
Copy link
Contributor Author

I figured out how to get 404 pages working and created a wiki page. I also linked to it from the main page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-question Category: A question on how to do something
Projects
None yet
Development

No branches or pull requests

2 participants