The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
22 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 ...
0
votes
0answers
45 views

Apache custom ErrorDocument with relative paths to CSS and images

I have a custom 404 page, error.html, in my DocumentRoot. I'm using the following configuration for it: ErrorDocument 404 /error.html The error document is basically: <!DOCTYPE html PUBLIC ...
2
votes
2answers
103 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
1answer
28 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 ...
0
votes
1answer
55 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
1answer
55 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, ...
1
vote
0answers
31 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
0answers
72 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
1answer
31 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
1answer
107 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 ...
1
vote
2answers
415 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
0answers
124 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 ...
0
votes
0answers
239 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
1answer
239 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
1answer
704 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
2answers
224 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
1answer
39 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 ...
1
vote
0answers
233 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: ...
0
votes
1answer
3k 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 ...
1
vote
1answer
2k 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 ...
0
votes
0answers
758 views

Apache2 ErrorDocuments does not work

I have my Apache configured like this: <VirtualHost *:443> ServerAdmin webmaster@server.com ServerName www.server.com:443 DocumentRoot /var/www/server/web SSLEngine on ...
1
vote
2answers
3k 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
1answer
111 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 / ...
1
vote
1answer
632 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
1answer
341 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 ...
0
votes
1answer
745 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
1answer
376 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
1answer
446 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 ...
0
votes
1answer
155 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
1answer
2k 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 ...
0
votes
1answer
847 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, ...
0
votes
3answers
1k views

Apache without any error page

How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error ...
3
votes
1answer
214 views

Apache ErrorDocument in an alias

I am trying to set a custom error document in an alias. Alias /f1 "/media/data/www/f1" <Directory "/media/data/www/f1"> AddHandler cgi-script .cgi .pl Options Includes Indexes ...
3
votes
1answer
3k views

Apache ErrorDocument directive not working

I can't get a custom error document to work for 400 Bad Request. It's a CentOS LAMP server. ErrorDocument 400 /badrdoc.html I've tried using the above in: Apache http.conf Apache ...
5
votes
1answer
1k views

How to make Apache return a custom page on a 400 error with malformed host headers?

I think what I was asking for was a bit hard to understand, so, I am trying to make it simpler... I need my server to have a custom 400 error page when it receives a request with a malformed host ...
2
votes
2answers
155 views

.htaccess ErrorDocument woes

I currently have an ErrorDocument directive defined inside my .htaccess file: ErrorDocument 404 /site/error.php Now if I go to a non-existent page like this on my site it works fine: ...
0
votes
2answers
261 views

ErrorDocument not working when accessing .htaccess

I've been setting up ErrorDocuments for a website I'm working, and generally they've been working. However, after I set the 403 ErrorDocument, I noticed that it didn't work when I tried to access the ...
1
vote
1answer
109 views

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 ...
-1
votes
1answer
895 views

Apache2 ErrorDocument not working on VirtualHost

My ErrorDocument redirect doesn't appear to be working! Here is the bottom of my sites-available file: ... </Directory> ErrorLog /var/log/apache2/error.log # Possible ...
0
votes
2answers
2k views

Using Apache Environment Variables to set custom ErrorDocument

I've got a set of RewriteCond rules that test for various mobile devices and then set environment variables like "env=device:.iphone" or "env=device:.smartphone" if the useragent matches an iPhone or ...
1
vote
3answers
6k views

Apache: Redirect 404 and ErrorDocument 404 difference

I would like to do a 404 redirect with Apache, and I find several solutions: The .htaccess method. But I don't want to add a .htaccess if not necessary. virtual host method: <VirtualHost ...
8
votes
1answer
6k views

Apache Httpd Custom ErrorDocument 404 When ProxyPass returned 404

I have an Apache web server in front of another application server, using Proxy Pass. When the request to application returned error 404, I want to show custom error page from the web server not the ...
0
votes
2answers
423 views

ErrorDocument 500 not working

I am testing a risk-free PHP application. So I have a file where I omit a ; to cause a 500 error. But the page I specified in ErrorDocument 500 is not called! It works with 404 though. I am using ...
0
votes
1answer
1k views

Configure Nginx global error page

Is it possible to configure globally only the http part of nginx.conf to have all sites using the same error pages, without having to add some lines to each of the sites? I'm not talking about the ...
0
votes
2answers
668 views

Apache+mod_jk and a specific 404 handler

I have a relatively simple Apache httpd + Tomcat via mod_jk setup that works well, but I need to have Tomcat handle certain 404 conditions. Basically, the httpd service will handle images and PDF ...
0
votes
1answer
312 views

cgi script served as plain text when called from .htaccess

I'm Running Apache 2.2 on the RackSpace CloudSites. I have a Perl CGI script that works fine if called directly via URL. I want to use the script as a custom ErrorDocument, but instead of being parsed ...
1
vote
1answer
1k views

How to catch all errors by ErrorDocument

There is a possibility to se error pages by ErrorDocument like this: ErrorDocument 403 /site.html ErrorDocument 404 /site.html ErrorDocument 500 /site.html But is there any way to catch all errors ...
1
vote
1answer
868 views

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 ...
2
votes
1answer
4k views

Problems redirecting Error 400 Bad Request to custom page

I've edited my .htaccess file to the following : ErrorDocument 404 /index.php?page=page-not-found ErrorDocument 400 /index.php?page=bad-request Now the error 404 redirects correctly, yet if i enter ...
3
votes
1answer
6k views

How do I get meaningful error messages in IIS7?

I have a classic ASP website that is crashing in IIS7. It is crashing because IIS doesn't allow file uploads greater than a certain size. I know this because files below about 200k work fine. I ...