Nginx: Custom Error 403 Page Not Working with IP Deny Configuration

Posted on in Categories last updated April 14, 2010

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?

hdparm: HDIO_DRIVE_CMD(identify) Failed: Inappropriate Ioctl For Device

Posted on in Categories , , , , , , last updated August 23, 2009

When I run hdparm -tT /dev/sda command under CentOS / RHEL I get the following error on screen:

/dev/sda:
Timing buffered disk reads: 908 MB in 3.00 seconds = 302.39 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device

How do I fix this problem?