Questions tagged [custom-errors]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
4 answers
23k views

IIS 7.5: How to configure custom Authentication Error page with Windows Authentication. 401 header problems

I have a php website running under IIS 7.5. The site is secured by Windows authentication and that works fine: When users go to the site, they are asked for username/password and get through if ...
trailmax's user avatar
  • 263
11 votes
1 answer
28k views

Why does Nginx's proxy_intercept_errors directive require a rewrite to work properly?

Following is a sample Nginx server configuration. Without the "magical talisman" location block, proxied error content results in an Nginx 404 page rather than the customized error page being served. ...
Aubrey Falconer's user avatar
10 votes
2 answers
13k views

Apache: insecure request sent to secure port...want to redirect

Preface Firstly: A simply Port 80 -> Port 443 Rewrite WILL NOT fix this. In almost every previous question, mail thread, forum thread, etc., I have found this was the first ignorant response and ...
peelman's user avatar
  • 811
9 votes
1 answer
11k views

nginx: error_page directive is silently ignored

I'm trying to return a custom 400 error page for non-HTTPS requests in nginx. I'm new to nginx, but I've read many pages of examples on custom error pages and nothing seems to work for me. My config: ...
Derek Shockey's user avatar
6 votes
4 answers
10k views

How to trigger a custom error from inside a Jinja template?

Though Ansible itself has a way for triggering a custom error, I can not find anything similar for Jinja. My current method uses a syntax error: {% if 'ansible_mounts' in hostvars[host] %} # {{ ...
Mikhail T.'s user avatar
  • 2,387
6 votes
1 answer
5k views

What is the difference between ".NET Error Pages" and "Error Pages" in IIS7?

In IIS 7 (.5) on my Windows Server 2008 r2, there are two places for error pages: ".NET Error Pages" under "ASP.NET" in Features View, and "Error Pages" under "IIS" in the same view. It seems like ...
bgmCoder's user avatar
  • 726
5 votes
2 answers
2k views

nginx won't serve an error_page in a subdirectory of the document root

Here's a snippet of my nginx configuration: server { error_page 500 /errors/500.html; } When I cause a 500 in my application, Chrome just shows its default 500 page (Firefox and Safari show a ...
Brandan's user avatar
  • 151
4 votes
2 answers
10k views

Displaying custom error pages on different VirtualHosts in Apache

I have a reverse proxy Apache that is moving the request to a Tomcat servlet. The configuration on the Virtual Host in Apache is: <VirtualHost 10.10.10.10:80> ProxyPass /Site1/ServLet1 http://1....
Mr Aleph's user avatar
  • 231
4 votes
3 answers
12k views

Disabling IIS 7.5 server error response for 5xx and 4xx HTTP status codes

Is there any way to prevent IIS from automatically overriding the output of a web app that is returning a status code in the 500 or 400 range? Just as an example, in ColdFusion I can create the ...
Jordan Reiter's user avatar
4 votes
3 answers
72k views

Custom error pages on Apache Tomcat

I'm running an Apache Tomcat server with 2 custom servlets. The tree structure looks like: $CATALINA_HOME/webapps/ ROOT/ WEB-INF/ servlet1/ META-INF/ ...
Mr Aleph's user avatar
  • 231
4 votes
2 answers
11k views

Apache: how to set custom 401 error page and save original behaviour

I have Kerberos-based authentication with Apache/2.2.3 (Linux/SUSE). When user is trying to open some url, browser ask him about domain login and password like in HTTP Basic Auth. If user cancel such ...
petRUShka's user avatar
  • 293
4 votes
0 answers
5k views

Overriding AWS ALB's default error page(s) with custom one(s) using CloudFront

I have an ALB, containing Rules that forward requests to my private EC2s, hosted on AWS, and when I make a new deployment, I have a script in Lambda that turns off my ASGs and turns them back on. ...
G. ILL's user avatar
  • 41
3 votes
1 answer
10k views

nginx custom 404 error page for virtual host

I'm running a few virtual hosts off nginx, and I would like them to each have their own custom 404 pages. Each virtual host has their own nginx.conf that I include my global nginx.conf. Inside the ...
Doug Stephen's user avatar
3 votes
1 answer
3k views

nginx: error_page does not work

I try to set up a maintenance page for my rails app, using this snipplet. error_page 503 /system/maintenance.html; if (-f $document_root/system/maintenance.html) { return 503; } This works as far ...
iGEL's user avatar
  • 265
3 votes
1 answer
3k views

IIS7 error config and remote errors

Certain IIS7/7.5 500.19 configuration errors only render on a browser running on the local server. This appears to happen regardless of whether I set <httpErrors errorMode="Detailed" ...
Kev's user avatar
  • 7,907
2 votes
2 answers
16k views

Catch upstream down (502) errors and display custom error page

This question should have been answered a longtime ago, but I can't seem to figure it out despite reading many common answers, can someone please point out why my configuration isn't working? Goal: ...
bitinn's user avatar
  • 331
2 votes
1 answer
4k views

customErrors="RemoteOnly" not working properly in Server 2008

It would appear that on my brand new Windows Server 2008 with IIS7, customErrors is not working. We have customErrors set to RemoteOnly in the web.config on our Asp.Net sites and applications. ...
Armstrongest's user avatar
2 votes
1 answer
6k views

How to configure custom error page in Plesk 9.3 for non existing folder? [closed]

I'm trying to configure Plesk in order to show website visitors a custom error html. The current hosted site is an ASP.NET site. This site shows its custom errors on error403.aspx and error404.aspx ...
Junior Mayhé's user avatar
2 votes
1 answer
366 views

Cannot add cron task

I'm trying to add cron task to renew my certbot certificates everytime they are going to expire, but I can't seem to be able to do that. I used this command: crontab -e 0 12 * * * /usr/bin/certbot ...
krystof18's user avatar
  • 131
2 votes
1 answer
42 views

Overland SnapServer 510 - Constant Beep

I have an Overland SnapServer 510 with GOS 6.5.029. I cleaned it, reseated the memory, same sticks, same slots. But now, when I boot, it is emitting a constant beep. I can't find anything about "tones"...
Scot Giambalvo's user avatar
2 votes
1 answer
514 views

IIS 7.5 Custom Error on 403.XX

I use typical custom error pages in IIS 7.5 like 404 or 401. I would like to know if there is a way to set custom error pages for individual error categories; for example: 403.16 - Client ...
Fergus's user avatar
  • 1,313
2 votes
1 answer
11k views

Custom 403 Error page not showing

I want to restrict access to certain folders (includes, xml and logs for example) and so I've given them 700 permissions, and all files within them 600 permissions. Firstly, is this the right approach ...
Rahul Sekhar's user avatar
2 votes
1 answer
1k views

Custom error page apache

I'm trying to setup a custom error page (reverse proxy is apache) Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please ...
Sander Böhm's user avatar
2 votes
1 answer
2k views

HTTP Error 500.19 - IIS Error

I have following lines in my web.config file. All I am trying to achieve is to display a custom error page if anything goes wrong in application. But instead of getting the custom page I get error as ...
bp581's user avatar
  • 141
2 votes
1 answer
1k views

Setting up custom error pages for nginx with https and virtual hosts

We have an nginx (OpenResty 1.4.2.7) instance acting as a load balancer. It has two server directives, one to serve one specific site (let's call it www.our-special-host.com) and one wildcard for ...
Giles Thomas's user avatar
2 votes
1 answer
3k views

How can I deny from a certain IP address but still show a custom error page with Apache2?

I have In my web root /home/www/ I have an .htaccess file to ban IP addresses: order allow,deny deny from 1.2.3.4 deny from 2.3.4.5 allow from all ErrorDocument 500 /errors/500.htm ErrorDocument 403 /...
cwd's user avatar
  • 2,793
2 votes
1 answer
4k views

NGINX block location access and redirect to custom error page

I have a issue with my NGINX setting with redirecting to a custom error page on another location (incl. css, images, js) if a error page should be thrown. At first I would like to block access to an ...
devKyrios's user avatar
2 votes
0 answers
488 views

Can I include the path and query string in an IIS "Error Pages" redirect?

I'm setting up a custom 403.4 handler so that non-SSL requests to my site are redirected to a different URL - and what I'd like to do is to include the script path and query string in the redirect, so ...
Dylan Beattie's user avatar
1 vote
2 answers
298 views

With an application server behind a reverse proxy, which server should handle the error pages and why?

We have a reverse proxy setup for our application that is managed by another team. Currently the 404 and 403 pages we've setup on the application server are overwritten with the reverse proxy error ...
Eric B.'s user avatar
  • 111
1 vote
2 answers
2k views

What would make a Custom 404 page suddenly stop working and show 500 instead?

I have a Custom 404 page written in classic ASP that's worked well for a couple of years. Suddenly, instead of seeing he expected nice 404, instead we're seeing a 500- internal server error. There's ...
Marc Wilson's user avatar
1 vote
1 answer
941 views

How to tell httpd to preserve the proxied error message?

I have an httpd server proxying the requests to 2 different tomcat servers. One of my server handles the authentication and returns a specific http error code 521 when the user already have a running ...
poussma's user avatar
  • 150
1 vote
1 answer
2k views

One custom maintenance page for all errors (Nginx)

I want to show one custom maintenance page for all errors. What code should I put to my nginx setting below? and the file of my nginx setting is located at /etc/nginx/conf.d/default.conf. server { ...
Super Kai - Kazuya Ito's user avatar
1 vote
1 answer
2k views

How to send all HTTP error codes dynamically to one PHP file when access to all other files is denied?

I'm having the following situation, I'm developing an API. I rewrite all traffic to one PHP script named: route.php, using mod_rewrite like: 1: RewriteEngine On 2: RewriteCond %{REQUEST_FILENAME} -f [...
Bob Ortiz's user avatar
  • 444
1 vote
1 answer
944 views

IIS Remote Errors to Specific Hosts

One of the IIS configuration options is how much error detail goes to the client's browser. It is clear why one would want their own development servers and not pass detail error messages to the ...
spz's user avatar
  • 13
1 vote
1 answer
1k views

Custom error pages when using IIS as a reverse proxy

I've configured IIS to act as a reverse proxy for a development server (dartlang's pub serve if you're curious). I'm doing this because the development server doesn't support custom error pages and I ...
w.brian's user avatar
  • 111
1 vote
1 answer
222 views

Custom "Not Found" with G-WAN Web Server on static content directory

Custom "Not Found (including Text and Headers)" with G-WAN Web Server on static content directory Before I ask my question, note that I have figured out how G-WAN builds responses with scripted ...
gwan-newbie's user avatar
1 vote
1 answer
1k views

Plesk 11 - Custom Error Documents, URL fails with "Wrong URL format" [closed]

I am setting up a new Plesk account and want to add a custom error document, 404, specifying a URL to a PHP file. In another account, which uses an earlier version of Plesk (v10, if not mistaken), ...
Sarah Weinberger's user avatar
1 vote
2 answers
5k views

IIS 7.0 404 Custom Error Page and web.config

I am having trouble with a custom 404 error page. I have a domain running a .NET proj with it's own error handling. I have a web.config running for the domain which contains: <customErrors mode="...
Colin's user avatar
  • 111
1 vote
1 answer
5k views

Override <customErrors mode="Off"/> message from .NET Framework even when in web.config detailed errors are turned on

is this possible to override .NET Framework error: Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this ...
GrZeCh's user avatar
  • 605
1 vote
1 answer
1k views

Custom 403 Error page is not displayed when wildcard characters are in the url

I have been customizing all error pages in my Apache project. Everything seemed to be ok until 403 Forbidden Error appeared. When I send a wildcard character through the URL (such as a blank space or ...
javierhersan's user avatar
1 vote
0 answers
846 views

apache 2.4 proxyerroroverride for custom 503 but not 404

We have a tomcat application that has a nicely formatted and functional 404 page. We were using Apache 2.2 as a front end, and overrode the error pages for 502 and 503 error conditions using the ...
S. Gevers's user avatar
1 vote
0 answers
587 views

IIS 8.5, Win Srvr 2012 R2 - CustomError mode=Off does not work, Blank page

We have an MVC ASP.net app on IIS 8.5, Win Server 2012 R2. When we set web.config to: <customErrors mode="Off" defaultRedirect="~/error" ></customErrors> The site shows completely blank ...
user1013388's user avatar
1 vote
2 answers
3k views

IIS and Windows authentication not allowing error pages

I have been trying this from last two days. I am not getting whats the problem. I searched the web but didn't find any solution. i tried all the settings of IIS like "Moving negotiate down, disable ...
Rebecca's user avatar
  • 11
1 vote
0 answers
259 views

Browser shows IIS Error Messages with WebSphere error messages below

I am working on an environment (external) where IIS is the web server and WebSphere is the application server. I have noticed that the error messages (Ex. 403, 404) show both IIS error messages as ...
leeman24's user avatar
  • 147
1 vote
1 answer
1k views

Make an error page folder serve a 403 error to external requests

I'm fiddling about with a server, and I've made one of the subdomains a proxy for a service that isn't always up. The server block looks like: server { server_name servlet.example.org; ...
algorithmshark's user avatar
1 vote
1 answer
698 views

Custom Event IDs Using NTEventLogAppender

This is my first post on ServerFault, but I love StackOverflow. I'm a coder, and as such I'm more comfortable in an IDE than in the registry, so I've come here for help. Problem: I have a chain of ...
ThoughtCrhyme's user avatar
1 vote
0 answers
233 views

How to set up custom 401 error page or redirect in WSS3 SP2

I've got a WSS3 sharepoint site that requires windows authentication both in IIS and via the Sharepoint site. What I would like to do is in the case that a user does not provide valid AD credentials ...
Stacy Vicknair's user avatar
0 votes
2 answers
207 views

Should pretty error pages be served with the correct status codes?

I noticed that, say, goolge's 404 page returns a 404 status (http://www.google.com/404.html) while github's returns 200 (https://github.com/404.html). Should error pages (even 503s, etc.) always be ...
Aaron Gibralter's user avatar
0 votes
1 answer
12k views

Apache custom 404 page not loading

I am trying to set up a custom error page for 404 error on my apache server. Here is what I am included in the Virtualhost <VirtualHost *:80> ErrorDocument 404 /var/www/html/mant.html </...
shamon shamsudeen's user avatar
0 votes
1 answer
4k views

Reverse proxy not serving local error pages

I have an Apache 2.4 server on Windows Server 2008 R2 that I use as a reverse proxy. It has been working fine and serves about 15 virtual hosts. Whenever a host fails, I want to display a web page ...
Pete Helgren's user avatar