Skip to content
Discussion options

You must be logged in to vote

Answer: I re-configured my nginx config as follows:

server {
        server_name docs.itsjusttriz.com;

        root /path/to/site/root;  # Adjust based on your actual setup
        index index.html;

        location / {
                try_files $uri $uri/ =404;
        }

        error_page 404 /404.html;
        location = /404.html {
                root /path/to/site/root;  # Adjust based on your actual setup
                internal;
        }
}

This is relying on my 404.html being in the same directory as my index.html

Keep in mind, the problematic view may still be cached and served. You'll need to check on it every now and again.

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
4 replies
@itsjusttriz
Comment options

@kamilkrzyskow
Comment options

@itsjusttriz
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
6 replies
@itsjusttriz
Comment options

@itsjusttriz
Comment options

@kamilkrzyskow
Comment options

@itsjusttriz
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by itsjusttriz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
out of scope Issue requests something out of scope
3 participants
Converted from issue

This discussion was converted from issue #6683 on January 23, 2024 12:30.