Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [custom-errors]

The tag has no usage guidance.

2
votes
1answer
15 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"...
0
votes
1answer
26 views

Efficiently defining many nginx custom error pages

I created some custom 4xx and 5xx HTML error pages for most errors listed on the Wikipedia page. I'd like to install them on any nginx server I set up, without impacting performance too much. ...
0
votes
0answers
20 views

Cloudflare Not Handling Internal Server HTTP 500 Error

I'm on Cloudflare's Pro Service. I've created a custom page for "Always On" and 500 Custom errors. However, when I mimic an error on the server creating a 500 error I see the server error message ...
0
votes
1answer
896 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 </...
0
votes
1answer
14 views

IIS10 PHP 7.04 pass through and show everything

I'm using internet information server 10,and I have an error in php. I can't debug using "echo", because IIS10 cancel all the html render if an error has been found. PHP.ini: cgifix_pathinfo=1 ...
0
votes
1answer
124 views

Setting up different static error pages in IIS for different domains

I have got a single IIS website that will host multiple sites (using a CMS). Each site has its own domain and will have its own theme, so I want the error pages (404 and 500) to be specific to each ...
4
votes
1answer
1k 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] %} # {{ ...
0
votes
1answer
445 views

nginx vhosts 404 50x custom pages with assets. Need rewrite?

I have a nginx config with about 10 vhosts, and I want to have them all share custom 404 and 50x and maintenance error pages. The nginx is a reverse proxy serving angular index.html and I'm a bit ...
0
votes
1answer
1k views

custome error page for HTTP 414 request uri is too long

I am able to set custom error pages for application level errors with help of customErrors as well as HTTP errors with httpErrors. But none of it handles HTTP 414 error. I have gone through the ...
1
vote
0answers
333 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 ...
0
votes
1answer
240 views

Default charset on every pare including error pages

I would like to produce a 404 error intentionally for some pages on my server, and I am currently working on the headers. The problem is, for the scripts that exists (and I give a 404 error in the ...
1
vote
2answers
108 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 ...
0
votes
1answer
24 views

Diplay detailed Error pages for specific users only

I'm using IIS 7.5 Webserver. Is it possible to show the detailed Error to some special users and to any other user a CustomErrorPage? Kind regards
1
vote
0answers
369 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 ...
1
vote
1answer
1k 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 [...
2
votes
1answer
308 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 ...
0
votes
0answers
172 views

IIS 7.5 How to configure custom 401 Authentication Error Page with Basic Authentication

I have a website running under IIS 7.5. I am using Basic Authentication. I want to set it up so that if authentication fails it redirects them to a www url. How can I achieve this?
1
vote
2answers
1k 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 ...
0
votes
1answer
1k views

Blank page when using IIS custom error pages

I'm running a PHP based application on IIS8, under Windows Server 2012. I'm trying to use a custom error page for failed authentication attempts - by replacing the 401 error page. Here is my web....
0
votes
0answers
882 views

IIS 8.5 Setting Custom Error Pages and Redirects

My environment consists of multiple websites, each with their own app pool running .NET v 2.0 Integrated. All of the sites share the same web.config. My question is whenever I change a custom error ...
1
vote
0answers
191 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 ...
2
votes
2answers
11k 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: ...
0
votes
1answer
3k views

Nginx error page static content not loaded

Running Nginx 1.4.1 I have the following config to display a custom error page in case my backend messes up. The page is displayed but custom fonts & images are not loaded. My custom error page (...
1
vote
1answer
515 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 ...
0
votes
1answer
307 views

ADFS 2.0 Client Certificate Log in Error pages

I have an ADFS 2.0 server set up to use Smart Card authentication. It works great if the user already exists in the AD, or isn't disabled. Slight background, we operate an Active Directory forest ...
0
votes
1answer
843 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; ...
1
vote
1answer
589 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 ...
2
votes
1answer
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 ...
1
vote
2answers
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 ...
1
vote
1answer
214 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 ...
2
votes
1answer
669 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 ...
1
vote
1answer
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), ...
0
votes
1answer
3k 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 ...
6
votes
1answer
9k 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. ...
0
votes
2answers
2k views

separate logs from limit_req_zone in nginx

Here we have piece of current nginx configuration: limit_req_zone $binary_remote_addr zone=one:32m rate=2r/s; limit_req zone=one burst=10; error_page 500 501 502 503 504 =503 /offline.html; location =...
0
votes
1answer
8k views

Squid 3 custom error message

I'm currently migrating a tiny Zentyal firewall from 2.2 to 3.0. Almost complete, but I can't figure out how to update the Squid 3 error page with some additional paragraphs. So far I've figured out ...
9
votes
2answers
11k 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 ...
5
votes
1answer
3k 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 ...
14
votes
4answers
18k 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 ...
1
vote
1answer
760 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 ...
2
votes
1answer
2k 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 ...
4
votes
2answers
1k 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 ...
0
votes
1answer
1k views

custom 502 bad gataway for nginx, cannot get it to work, whats wrong?

Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail. ...
4
votes
2answers
7k 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 ...
0
votes
1answer
1k views

How to create an Apache error page for redirected Zope

I have some virtual hosts which are redirections to Zope server processes: RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/%{HTTP_HOST}:80/theroot/VirtualHostRoot/$1 [L,P] Of course, ...
2
votes
0answers
438 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 ...
1
vote
1answer
613 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 ...
4
votes
2answers
8k 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....
3
votes
1answer
2k 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 ...
2
votes
1answer
6k 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 ...