Questions tagged [errordocument]
The errordocument tag has no usage guidance.
74
questions
0
votes
2
answers
219
views
How do you set the " ErrorDocument 404 / example.php " code up without running into this error?
I have been working on this "ErrorDocument 404 issue" for the afternoon and I have been unable to solve this issue just yet. Can you please help.
I have set up my custom error 404 page and ...
1
vote
1
answer
54
views
ErrorDocs | VirtualHost | Apache 2.2.x
So, I'm having a challenge trying to get my virtual hosts (in the example, called bozo) to 'point' at the right error documents for 401, 403,... errors. I am trying the following construct, but it ...
0
votes
1
answer
260
views
ErrorDocument not working for any error. Ubuntu Apache
I'm having an issue with getting the ErrorDocument to work. I have tried most of the suggestions on most of the forms and posts. The only thing I know that I have that the others did not is the ...
0
votes
1
answer
102
views
Nginx configuration for docker web application
I am configuring Nginx (not in docker) to redirect a web service provider on localhost:9333 (which are placed in two docker containers). I could reach service through ssh, but when using the domain ...
1
vote
1
answer
917
views
Using an htaccess file for 410 (gone page) prevents use of images
I am shutting down a website. I have deleted the wordpress site and the only page left in the domain is a page announcing the permanent shutdown of the site. The URL of the shutdown page is...
http://...
0
votes
0
answers
211
views
Apache log says "404" but my ErrorDocument is ignored and browser says "The requested URL ... has moved"
I'm trying to setup some customer error pages on our Apache servers, which seemed straightforward. The 503 is working right, but the 404 is not. They're setup the same:
<LocationMatch "/my/...
2
votes
0
answers
703
views
Apache custom error pages for 400 and 408
I have created a number of custom error pages and I have this in global configuration so it will apply to all vhosts:
Alias /common /var/www/common
ErrorDocument 400 /common/400.shtml
ErrorDocument ...
2
votes
0
answers
3k
views
ErrorDocument 400 redirect to different URL without rewrite
I want to implement a custom Error 400 page on my website tikolu.net, to a file called 400.php in a folder called error.
The first thing I tried was to simply place ErrorDocument 400 /error/400.php ...
1
vote
1
answer
463
views
Nginx refuses custom error pages
I am able to see nginx error pages, but not my own. proxy_inter_errors properly redirects. I made a custom 404 and 500 error page with my logo. It will only show the nginx default error pages, not ...
1
vote
0
answers
67
views
Apache and LDAP autentication + ErrorDocument
I use Apache 2.4 and mod_authnz toauthentication user from the AD.
And I have few questions:
1) I use the following code:
<Location "/*">
AuthType Basic
AuthBasicProvider ldap
...
1
vote
1
answer
645
views
Apache - Custom error page returning error AH01071 only for file requests
I have a site hosted with a shared hosting provider. It is an Apache with FPM/FastCGI and PHP 7.2
Being shared hosting, the only configuration I have access to is htaccess, but obviously not any of ...
1
vote
2
answers
686
views
apache2 custom error, when a directory is empty
Usually, when a directory has no index.html file in it, apache just displays a page which says "Index of /subdir" at the top and lists all the files.
How is it possible to instead of this show a ...
1
vote
1
answer
2k
views
What Ownership should `public_html` have so it can use 750? (And not 751) [duplicate]
Question: What ownership does Apache need so that it does not require execute permissions for the world on public_html (751)?
Background: When I changed the php.ini settings through cPanel, there was ...
2
votes
3
answers
12k
views
Nginx - how to disable rewrite for error_page
I'm currently hosting a couple small static websites using Nginx 1.10.2 on Fedora 25 Server Edition x86_64.
I've configured Nginx to assume the .html for requests with no file extension (try_files), ...
1
vote
2
answers
287
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
1
answer
2k
views
Apache - changing admin email address shown in error messages
I would like to change the email address shown on my error pages - eg, from 500 Internal Server Error:
...Please contact the server administrator at [email protected] to inform them of the time this ...
2
votes
1
answer
3k
views
Apache ErrorDocument without redirect?
I have an Apache server that has / forwarding to a Tomcat server. When the Tomcat server is down, I want to display an error message. Here's what I have currently:
ErrorDocument 502 "We're down, ...
2
votes
2
answers
3k
views
Apache ErrorDocument script location
Using apache 2.4 on Linux, with several virtual servers, each virtual server with its own DocumentRoot, I would like for the apache main server ErrorDocument local redirect to execute a single perl ...
0
votes
1
answer
38
views
How to integrate the php’s error codes to submit to a database
I'm trying to writes PHP error to a mysql database. If there’s a way we can change it so that instead of writing directly to an error_log file, it sends the error to a script, which records it in the ...
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 [...
-1
votes
1
answer
997
views
fake REQUEST_URI response
I have noticed in the Web-server log-file that some guys actually test the existence of some pages on my server (and possible other server).
So I have setup a custom 404 site and read out who this ...
0
votes
2
answers
3k
views
Apache 2.4 ErrorDocument for multiple subdomains
we're running a large project for different customers, each has its own subdomain. Apache should not execute any script if an invalid subdomain is used. Instead, an error page should be shown.
...
1
vote
1
answer
2k
views
apache: absolute ErrorDocument relative /var/www/?
My apache VirtualHost contains an ErrorDocument directive:
<VirtualHost *:80>
ServerName test
DocumentRoot /var/www/html/test/
ErrorDocument 404 /error/404.txt
</VirtualHost>
The ...
3
votes
2
answers
3k
views
Special characters in URL causes custom redirect to fail
I have a domain on which I am trying to set custom redirects for the error pages.
My .htaccess file looks like so:
RewriteEngine On
AddDefaultCharset UTF-8
DefaultLanguage en-US
# disable TRACK and ...
0
votes
1
answer
441
views
System error in Apache with combination of https redirection plus password requirement plus error document
In an Apache 2 vhost I have the following configuration (in my case, in .htaccess of the document root (which is for simplicity the same for http:80 and https:443)
RewriteEngine On
RewriteCond %{...
1
vote
1
answer
677
views
ErrorDocument 405 not working in Apache
I'm using Apache as a Proxy to our internal Glassfish server and want to hide as much information about the software we're using as I can.
In Apache I configured a very simple 404 ErrorDocument on ...
1
vote
1
answer
688
views
Using multiple .htaccess files with multiple ErrorDocument 404 entries
Here's what I'm trying to accomplish. Right now, in /var/www I have an .htaccess file with multiple ErrorDocuments defined for various errors.
I also have subsites (i.e. /var/www/tf2c, /var/www/obtf2)...
1
vote
0
answers
187
views
Apache httpd: mod_cache CacheStaleOnError vs. ErrorDocument
We have a Apache httpd with mod_cache/mod_disk_cache enabled. By default the directive CacheStaleOnError is activated. The documentatn states:
When the CacheStaleOnError directive is switched on, ...
1
vote
0
answers
251
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 ...
0
votes
1
answer
128
views
Stop error logging of specific event [duplicate]
How do you stop logging of a specific event on a centos error_log.
I have a file which is blocked via .htaccess but each time it is accessed I get a new line on the log saying:
[Tue Jan 27 09:48:42 ...
1
vote
1
answer
909
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 ...
2
votes
3
answers
3k
views
Can I make Apache ErrorDocument return 404 instead of 301?
In my .htaccess I have
ErrorDocument 404 http://foo.com/404.html
It works, in the sense that I recover from any file not found error and show the 404 page instead, but the way it works is to ...
0
votes
0
answers
567
views
Apache ErrorDocument 429 HTTP_TOO_MANY_REQUESTS unsupported
I'm trying setup the HTTP_TOO_MANY_REQUESTS status code (429) for Apache, but it doens't seems to be supported by my version of Apache when i run a configtest:
Unsupported HTTP response code 429
OS: ...
0
votes
0
answers
911
views
Custome page when Apache Server is down
I've looked at Apache ErrorDocument directive on how to do this. I found an answer here and it mentioned :
You should use a URL to point to your ErrorDocument otherwise if you use a filesystem ...
0
votes
1
answer
2k
views
Apache redirect request to another server on error
I currently have 3 web servers serving large files load balanced at DNS level. There's one "master" server, and two "slave" servers.
The master server has all of the files required, and it pushes ...
1
vote
1
answer
5k
views
403 error from 403 ErrorDocument
I've the following configuration script in my Apache 2.4.7 installation:
<Directory "/www">
Options Indexes FollowSymLinks
AllowOverride All
<RequireAll>
Require all ...
1
vote
2
answers
1k
views
Override Apache's default error pages
I have an Apache server serving numerous domains as virtual hosts. I'd like to override Apache's default error pages (404, 500, etc) to apply to all of these virtual hosts, while still giving each ...
1
vote
1
answer
108
views
Apache Authentication: Wrong ErrorDocument after user provided wrong credentials and canceled afterwards
We've configured Apache HTTPd to use
Basic Authentication
Serve a custom error document
Now, the user gets different results, when canceling the authentication in the first step or after submitting ...
1
vote
0
answers
436
views
Apache 2.0 ErrorDocument directive does not work when getting root directory itself
I am in charge of a site using Apache 2.0 on Red Hat 4.1.2.
I have configured the site to display a custom error page by adding this line to the .htaccess file in the site's root directory:
...
2
votes
2
answers
9k
views
Pageok given by puppet instead of subdomain files hosted on godaddy
I'm managing the e-commerce website for a retail store in Los Angeles, and use a subdomain hosted on GoDaddy as a fileserver to augment our Online Webstore CMS, which won't take large files (and ...
2
votes
2
answers
18k
views
How to specify ErrorDocument for a VirtualHost in Apache2?
I have an Apache 2 server and it have several vhosts with similar definition:
<VirtualHost *:80>
DocumentRoot /var/www/html/host1/
ServerName host1.loc
<Directory /var/www/html/...
7
votes
3
answers
30k
views
NGINX default error page
I'm trying to set a default error_page for my entire nginx server (as in for all vhosts).
I'm trying it with following code:
http {
...
...
error_page 404 /var/www/default/404.html;
....
0
votes
1
answer
255
views
How can prevent the apache ErrorDocument from passing path infomation?
I am trying to forward all requests to a particular hostname to a specific URL.
My virtual host entry looks like:
<VirtualHost *:80>
ServerName test.example.com
RedirectPermanent / ...
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 /...
1
vote
1
answer
656
views
Unexpected .htaccess relative ErrorDocument behavior
In the document root, I put an .htaccess with:
ErrorDocument 404 /error.php
Since this is in a .htaccess file, Apache looks for error.php in the relative path, so I can put different error.php files ...
0
votes
1
answer
2k
views
ErrorDocument 404 not found in non-existent subdomain
I am trying to get the apache server to issue a custom 404 error for invalid subdomains. The following is the relevant part of the httpd configuration:
Alias /err/ "/var/www/error/"
ErrorDocument 404 ...
2
votes
1
answer
771
views
apache error document displaying urlencoded characters wrong
If I request a page like http://url/T%C3%A4st (http://url/Täst) my Apache-Error Pages display with a wrong encoding, for example:
The requested URL /Täst was not found on this server.
<!...
2
votes
1
answer
592
views
Handling site not found and page not found with dynamic mass virtual hosting
I have recently setup mass virtual hosting in Apache so that all we need to do is create a directory to create a new vhost. We're then also using wildcard DNS to map all subdomains to the server ...
1
vote
1
answer
225
views
Apache rewrite hostname on 404
I have two versions of my website: a full site for desktop browsers, and a mobile site which contains mobile-friendly versions of some of the pages from the desktop site. The urls for both sites are ...
1
vote
1
answer
4k
views
OHS + weblogic - Customize error 500
and sorry if the question looks stupid (it may be ^^), I'm a newbie in HTTP server.
We use OBIEE 11g, that means we have Weblogic and we chose to use an Oracle HTTP Server (OHS, built on Apache) in ...