Questions tagged [errordocument]

71 questions
1
vote
1 answer

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 the server level: ErrorDocument 404 "Page not…
Davio
  • 113
  • 1
  • 4
1
vote
1 answer

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). Right now, I've got any missing pages in those…
user310026
1
vote
0 answers

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, and when stale data is available in the cache, the…
ahaertig
  • 65
  • 1
  • 6
1
vote
0 answers

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 well as what the application returns through…
leeman24
  • 147
  • 1
  • 9
1
vote
1 answer

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 public from their production servers. How do you…
spz
  • 13
  • 2
1
vote
1 answer

403 error from 403 ErrorDocument

I've the following configuration script in my Apache 2.4.7 installation: Options Indexes FollowSymLinks AllowOverride All Require all granted Require not ip ip.range.A ip.range.B …
1
vote
2 answers

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 host the ability to customize their own to replace…
smdrager
  • 131
  • 7
1
vote
1 answer

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 wrong credentials. Example The user calls the…
Adrian
  • 111
  • 4
1
vote
0 answers

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: ErrorDocument 403 /403.html For testing, I have blocked my…
EK0
  • 103
  • 1
  • 7
1
vote
1 answer

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 in different subfolders to get it to execute…
dlo
  • 451
  • 1
  • 4
  • 14
1
vote
1 answer

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 identical when viewed from outside, an internal…
codebox
  • 167
  • 1
  • 2
  • 8
1
vote
1 answer

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 front. OHS uses mod_wl_ohs to interact with…
Emmanuel
  • 111
  • 1
  • 7
1
vote
1 answer

Redirecting a non-existent file in cgi-bin

We are using RHLE 5.6. I am fairly new with linux and apache. We currently have a website using an archaic exe file in the cgi-bin directory for a shopping cart (on Windows). We are migrating this website to the RHLE 5.6 server. The challenge I am…
1
vote
1 answer

custom error documents do not display @localhost test server

I'm running a local test-server (on Ubuntu 10.04), but for some reason I don't seem to be seeing my custom 403/404 error messages. Here's some command output: [ /var/www ] # ls -al: drwxr-xr-x 5 www-data www-data 4096 2010-07-31 18:40 . drwxr-xr-x…
Zaz
  • 783
  • 1
  • 6
  • 17
1
vote
1 answer

Set Error-Pages for all Applications in Tomcat

I'm trying to set up custom error pages in tomcat 6, because I don't want the default ones to show up. My error pages are static html, no jsp or anything dynamic. I know how to do this through the web.xml in each application but I'd prefere to…
phisch
  • 113
  • 1
  • 8