Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

404 Error Page (PHP)

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
page cannot be displayed with "www.yyy.com" address - I'm able to access the site when I prefix it with What parameter allows me to access the site just using instead of having me or other users type in the full

disable a site with an temporaly page - hi i've a problem with my site and i want to disable the access to all the files and of the site, and display an unique page saying I only can use .htaccess files to do this. srry for the english. Thanks alot :)

Apache 4.0.46 and Win2k - no page served through localhost - OK, Apache gurus. I've been using Apache 1.3 for a while (with PHP) to develop some web sites on my laptop running Windows 2000 (I put them onto my Linux box for final No problems to date. Recently I had cause to rebuild the laptop so I..

Apache error - I am using Solaris8, Weblogic 7sp2 and IBM HTTPD server. Getting the following error [error] [os error=0, line 199 of Any help is Thanks
Author Message
programthis

External


Since: Jul 05, 2003
Posts: 3



(Msg. 1) Posted: Sat Jul 05, 2003 9:24 pm
Post subject: 404 Error Page (PHP)
Archived from groups: alt>apache>configuration (more info?)

In httpd.conf, I put in this line.

ErrorDocument 404 /404.html

Now, when I go to www.myweb.com/123, I see the 404.html. But when I
enter this line into the httpd.conf.

ErrorDocument 404 /404.php

And enter www.myweb.com/123, I get "The page cannot be found". There
is a "404.php" page in the root, I have also been working with PHP for
a long time on Apache 2.0 with nothing wronge. Any help on what I am
not doing right?

btw.... The php page is lager than 70 bytes.

Thank you, Chris.

 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
patpro

External


Since: Jul 06, 2003
Posts: 18



(Msg. 2) Posted: Sun Jul 06, 2003 11:07 am
Post subject: Re: 404 Error Page (PHP) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <745a8efd.0307051724.12de8d46.DeleteThis@posting.google.com>,
programthis.DeleteThis@msn.com (Krhis) wrote:

 > ErrorDocument 404 /404.php
 >
 > And enter <a style='text-decoration: underline;' href="http://www.myweb.com/123," target="_blank">www.myweb.com/123,</a> I get "The page cannot be found".

what do you read in the apache error log ?


patpro<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
programthis

External


Since: Jul 05, 2003
Posts: 3



(Msg. 3) Posted: Sun Jul 06, 2003 11:07 am
Post subject: Re: 404 Error Page (PHP) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro <patpro.DeleteThis@elena.patpro.net> wrote in message news:<patpro-FCF213.08070906072003.DeleteThis@biggoron.nerim.net>...
 > In article <745a8efd.0307051724.12de8d46.DeleteThis@posting.google.com>,
 > programthis.DeleteThis@msn.com (Krhis) wrote:
 >
  > > ErrorDocument 404 /404.php
  > >
  > > And enter <a style='text-decoration: underline;' href="http://www.myweb.com/123," target="_blank">www.myweb.com/123,</a> I get "The page cannot be found".
 >
 > what do you read in the apache error log ?
 >
 >
 > patpro

There is nothing in the error log saying that the 404.php page can't
be found, just that the /123 can't be found:

[Sun Jul 06 10:10:32 2003] [error] [client 127.0.0.1] File does not
exist: C:/HTTP/123
[Sun Jul 06 10:11:18 2003] [error] [client 127.0.0.1] File does not
exist: C:/HTTP/123
[Sun Jul 06 10:13:39 2003] [error] [client 127.0.0.1] File does not
exist: C:/HTTP/123<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
patpro

External


Since: Jul 06, 2003
Posts: 18



(Msg. 4) Posted: Sun Jul 06, 2003 7:56 pm
Post subject: Re: 404 Error Page (PHP) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <745a8efd.0307060614.4dc987d9 DeleteThis @posting.google.com>,
programthis DeleteThis @msn.com (Krhis) wrote:

   > > > ErrorDocument 404 /404.php
   > > >
   > > > And enter <a style='text-decoration: underline;' href="http://www.myweb.com/123," target="_blank">www.myweb.com/123,</a> I get "The page cannot be found".
  > >
  > > what do you read in the apache error log ?
  > >
  > >
  > > patpro
 >
 > There is nothing in the error log saying that the 404.php page can't
 > be found, just that the /123 can't be found:
 >
 > [Sun Jul 06 10:10:32 2003] [error] [client 127.0.0.1] File does not
 > exist: C:/HTTP/123


does you 404.php sits in C:/HTTP/ ?

patpro<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
programthis

External


Since: Jul 05, 2003
Posts: 3



(Msg. 5) Posted: Sun Jul 06, 2003 7:56 pm
Post subject: Re: 404 Error Page (PHP) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro <patpro DeleteThis @elena.patpro.net> wrote in message news:<patpro-22E79E.16563006072003 DeleteThis @biggoron.nerim.net>...
 > In article <745a8efd.0307060614.4dc987d9 DeleteThis @posting.google.com>,
 > programthis DeleteThis @msn.com (Krhis) wrote:
 >
   > > > > ErrorDocument 404 /404.php
   > > > >
   > > > > And enter <a style='text-decoration: underline;' href="http://www.myweb.com/123," target="_blank">www.myweb.com/123,</a> I get "The page cannot be found".
   > > >
   > > > what do you read in the apache error log ?
   > > >
   > > >
   > > > patpro
  > >
  > > There is nothing in the error log saying that the 404.php page can't
  > > be found, just that the /123 can't be found:
  > >
  > > [Sun Jul 06 10:10:32 2003] [error] [client 127.0.0.1] File does not
  > > exist: C:/HTTP/123
 >
 >
 > does you 404.php sits in C:/HTTP/ ?
 >
 > patpro

Yes.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
patpro

External


Since: Jul 06, 2003
Posts: 18



(Msg. 6) Posted: Mon Jul 07, 2003 1:45 am
Post subject: Re: 404 Error Page (PHP) [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <745a8efd.0307061239.17d76935 DeleteThis @posting.google.com>,
programthis DeleteThis @msn.com (Krhis) wrote:

 > patpro <patpro DeleteThis @elena.patpro.net> wrote in message
 > news:<patpro-22E79E.16563006072003 DeleteThis @biggoron.nerim.net>...
  > > In article <745a8efd.0307060614.4dc987d9 DeleteThis @posting.google.com>,
  > > programthis DeleteThis @msn.com (Krhis) wrote:
  > >
   > > > > > ErrorDocument 404 /404.php
   > > > > >
   > > > > > And enter <a style='text-decoration: underline;' href="http://www.myweb.com/123," target="_blank">www.myweb.com/123,</a> I get "The page cannot be found".
   > > > >
   > > > > what do you read in the apache error log ?
   > > > >
   > > > >
   > > > > patpro
   > > >
   > > > There is nothing in the error log saying that the 404.php page can't
   > > > be found, just that the /123 can't be found:
   > > >
   > > > [Sun Jul 06 10:10:32 2003] [error] [client 127.0.0.1] File does not
   > > > exist: C:/HTTP/123
  > >
  > >
  > > does you 404.php sits in C:/HTTP/ ?
  > >
  > > patpro
 >
 > Yes.

so their is probabely a problem with your httpd.conf, you should post it
here, at least significant part of it.

patpro<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 Error Page (PHP) 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]