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

Axel ar at xlrs.de
Mon Jun 16 09:45:33 UTC 2014


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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Regards, Axel 



More information about the nginx mailing list