Problems with browser redirection (Apache ErrorDocument and Perl Location:)

Problems with browser redirection (Apache ErrorDocument and Perl Location:)

Post by Tom To » Fri, 02 Jun 2000 04:00:00



Sorry for the long title.

I have the following (without [#])
in my Apache config:
 ErrorDocument 404 /Scripts/ErrorDocument.pl?response=404 [1]

in ErrorDocument.pl:
 print "Location: http://www.mydomain.com/Errors/404.html\n\n"; [2]

[2] is currently the first line in the perl code (for testing).

My problem is that this returns an empty page of type text/plain,
rather than the html page. The config [1] is for mydomain.com
and the url [2] does exists. If I call the script directly from
the browser, it works.

Any help would be appreciated.
--
Cheers,
Tom

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. Apache-perl: place html files and perl scripts in the same location

i've a prob

i installed apache-perl.
then created a directory /var/www/perl and placed severel static html
files and
perl scripts in it.
when i try to access the adress http://myserver/perl/somehtmlfile.html

it displays an Internal Server Error and the error.log is written full
with bareword errors.

how can i configure apache to just display the html files but execute
the perl scripts with mod_perl?(in the same dir)

2. PPP problems

3. Redirect Apache ErrorDocument 500 to display perl errors/warnings?

4. <Q> UPS Control Program

5. Does Linux pass the Bus Test?

6. logging redirection via Location: on apache

7. SunFront key

8. ??apache redirection while keeping original address in browser

9. Newbie needs assistance: Browser Sniffing and URL redirection in Apache 1.3.

10. CGI-BIN Perl Script Not Routed Back to Browser using Apache

11. ErrorDocument 404 causing weird crash of browser

12. Apache and ErrorDocument problem