Welcome! Log In Create A New Profile

Advanced

Re: How to redirect error page (html) self built html error page

Axel
June 16, 2014 05:46AM
Hi,

Am Montag, 16. Juni 2014, 05:14:59 schrieb mknazri:
> Hi everyone,
>
> Sorry for my english. My scenario like below ;
>
> I setup my webserver in cloud and I have my ERP server running at different
> DC. The connection from cloud to DC is very fast, no interuption at all.
> When my customer access www.example.com it will show the website that i
> build in cloud (Webserver). Each customer have vpn access when they
> subscribe with us. So, when they wat to use ERP system, they need to connect
> to vpn first and they can go through https://erp.example.com. I configured
> NGINX to allow only server subnet IP and tunnel network subnet for VPN. The
> problem is when they click to login page, it will show error 403 not my
> html error page. I want it to trigger error page that I build in HTML.
>
> My problem is it not show the error page (html) that I build. It wil show
> error 403.

How did you configure your error_page?

Here's a snippet I use

error_page 500 502 503 504 =200 /maintenance.html;
location /maintenance.html {
root /etc/nginx;
}

You can add 403 and 404 status.


> Please anyone help me
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,250878,250878#msg-250878
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Regards, Axel

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to redirect error page (html) self built html error page

mknazri June 16, 2014 05:14AM

Re: How to redirect error page (html) self built html error page

Axel June 16, 2014 05:46AM

Re: How to redirect error page (html) self built html error page

mknazri June 16, 2014 06:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 288
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready