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

Custom Error Page #157

Open
SAGOnly opened this issue Mar 5, 2023 · 0 comments
Open

Custom Error Page #157

SAGOnly opened this issue Mar 5, 2023 · 0 comments

Comments

@SAGOnly
Copy link

SAGOnly commented Mar 5, 2023

aaPanel, including the installed Nginx, cannot run its my own error pages. I tried OS Debian 11 + Ubuntu 18.04 to 22.04 and Nginx version 1.18.0 to 1.22.1 + Tengine 2.2. Manual installations + and also module added to Nginx before installing and compiling.
When I install Nginx without Aapanel on a clean server, my own error pages work correctly
https://trendoceans.com/create-custom-nginx-error-page | https://github.com/denysvitali/nginx-error-pages
I added the module before installing and compiling the Nginx...
Name: nginx_error_pages | Details: nginx_error_pages | Parameter: --add-module=/srv/nginx-error-pages
Prefix script: git clone https://github.com/denysvitali/nginx-error-pages.git /srv/http/default
mkdir /www/server/nginx/conf/snippets/
ln -s /srv/http/default/snippets/error_pages.conf /www/server/nginx/conf/snippets/error_pages.conf
ln -s /srv/http/default/snippets/error_pages_content.conf /www/server/nginx/conf/snippets/error_pages_content.conf
All written in config Nginx I to config Domain. However, the error pages of the default Nginx aaPanel are still displayed.
Thank you for info and help me.

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