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

feature request: custom error pages #27

Open
tonyengstrom opened this issue Jul 23, 2019 · 0 comments
Open

feature request: custom error pages #27

tonyengstrom opened this issue Jul 23, 2019 · 0 comments

Comments

@tonyengstrom
Copy link

Is it possible to import the default /etc/nginx/sites-enabled/default file into the container so one can add custom error pages as needed. The idea is that one would manually add custom error pages like 404.html into /usr/share/nginx/html and then add something like the below to /etc/nginx/sites-enabled/default file:

server {
        listen 80 default_server;
        listen [::]:80 default_server ipv6only=on;

        . . .

        **error_page 404 /custom_404.html;
        location = /custom_404.html {
                root /usr/share/nginx/html;
                internal;**
        }
}
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