web server

I block or deny access based on the host name or IP address of the client visiting website under nginx web server. I want to display customized e403.html error page, but it doesn’t appear to be working. Nginx always displays the built-in, hardcoded “403 Forbidden” error message. Here is my configuration:

.....
  ...
 deny 1.2.3.4;
 deny 91.212.45.0/24;
 deny 91.212.65.0/24;
 .....
 ...
 error_page 403 /e403.html;
        location = /e403.html {
           root   html;
       }

How do I fix this problem and display custom error 403 page under nginx server?

{ 1 comment }

How do I add a header to the HTTP request that was received from the client under Lighttpd web server?

{ 0 comments }

How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server?

{ 13 comments }

How do I restart Apache 2 web server under Apple Mac OS X UNIX operating systems?

{ 0 comments }

How do I restart nginx web server under Linux?

{ 2 comments }

How do I restart my lighttpd+php fastcgi web server gracefully under Linux / UNIX operating systems?

{ 4 comments }

How do I install ModSecurity – an open source intrusion detection and prevention engine for web applications under CentOS / RHEL / Red Hat Enterprise Linux 5.x server?

{ 14 comments }