Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache and PHP files

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Red Hat 9: Apache compresses JPEG files  
Author Message
matt13

External


Since: May 07, 2004
Posts: 3



(Msg. 1) Posted: Fri May 07, 2004 4:00 pm
Post subject: Apache and PHP files
Archived from groups: alt>apache>configuration (more info?)

I hope their is an easy fix for this.

If I type:

www.domain.com/test.php the file loads as expected

If I type:

www.domain.com/test/ the file loads a broken test.php

I'd like for a default error page to load. The dir test does not exist.
Why is apache processing the "/" and trying to load the test.php?

This happend on all my *.php files.

Much Thanks

 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 2) Posted: Fri May 07, 2004 10:16 pm
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <LfSdnaBf84E_XQbdRVn-tA.TakeThisOut@britsys.net>,
"admin" <matt.TakeThisOut@matthosford.com> wrote:

 > I hope their is an easy fix for this.
 >
 > If I type:
 >
 > <a style='text-decoration: underline;' href="http://www.domain.com/test.php" target="_blank">www.domain.com/test.php</a> the file loads as expected
 >
 > If I type:
 >
 > <a style='text-decoration: underline;' href="http://www.domain.com/test/" target="_blank">www.domain.com/test/</a> the file loads a broken test.php
 >
 > I'd like for a default error page to load. The dir test does not exist.
 > Why is apache processing the "/" and trying to load the test.php?
 >
 > This happend on all my *.php files.


same behaviour here ! I'm very surprised, I've never noticed that before.
I guess it's a feature... httpd logs show nothing wrong :

normal :

"GET /as/archives/index.php HTTP/1.1" 200 5983
"GET /as/archives/styles.css HTTP/1.1" 200 5090

with the / in place of .php :

"GET /as/archives/index/ HTTP/1.1" 200 5141
"GET /as/archives/index/styles.css HTTP/1.1" 200 5141

the CSS looks like it's properly loaded (from the logs) but the browser
does not use it.


patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
matt13

External


Since: May 07, 2004
Posts: 3



(Msg. 3) Posted: Fri May 07, 2004 10:16 pm
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"patpro ~ patrick proniewski" <patpro.DeleteThis@boleskine.patpro.net> wrote in message
news:patpro-B05019.19162807052004@individual.net...
 > In article <LfSdnaBf84E_XQbdRVn-tA.DeleteThis@britsys.net>,
 > "admin" <matt.DeleteThis@matthosford.com> wrote:
 >
  > > I hope their is an easy fix for this.
  > >
  > > If I type:
  > >
  > > <a style='text-decoration: underline;' href="http://www.domain.com/test.php" target="_blank">www.domain.com/test.php</a> the file loads as expected
  > >
  > > If I type:
  > >
  > > <a style='text-decoration: underline;' href="http://www.domain.com/test/" target="_blank">www.domain.com/test/</a> the file loads a broken test.php
  > >
  > > I'd like for a default error page to load. The dir test does not exist.
  > > Why is apache processing the "/" and trying to load the test.php?
  > >
  > > This happend on all my *.php files.
 >
 >
 > same behaviour here ! I'm very surprised, I've never noticed that before.
 > I guess it's a feature... httpd logs show nothing wrong :
 >
 > normal :
 >
 > "GET /as/archives/index.php HTTP/1.1" 200 5983
 > "GET /as/archives/styles.css HTTP/1.1" 200 5090
 >
 > with the / in place of .php :
 >
 > "GET /as/archives/index/ HTTP/1.1" 200 5141
 > "GET /as/archives/index/styles.css HTTP/1.1" 200 5141
 >
 > the CSS looks like it's properly loaded (from the logs) but the browser
 > does not use it.
 >
 >
 > patpro
 >
 > --
 > je cherche un poste d'admin UNIX/Mac
<font color=purple> > <a style='text-decoration: underline;' href="http://patpro.net/cv.php</font" target="_blank">http://patpro.net/cv.php</font</a>>


I was very surprised as well.... Now I hope someone knows how to disable
this feature Smile<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Fri May 07, 2004 10:16 pm
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro ~ patrick proniewski <patpro.DeleteThis@boleskine.patpro.net> wrote:
 > In article <LfSdnaBf84E_XQbdRVn-tA.DeleteThis@britsys.net>,
  >> I hope their is an easy fix for this.

I tryed with 2 different server and 2 different version of PHP/Apache
and all of them give the same problem, but if you turn off PHP then
you have the correct behavour (of course your PHP file isn't processed
anymore).

So I think is a bug in the PHP module...

Davide

--
| By doing just a little every day, you can gradually let the task
| completely overwhelm you.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 5) Posted: Sat May 08, 2004 2:18 am
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <2g2086F3jdnsU3.DeleteThis@uni-berlin.de>,
Davide Bianchi <davideyeahsure.DeleteThis@onlyforfun.net> wrote:

 > patpro ~ patrick proniewski <patpro.DeleteThis@boleskine.patpro.net> wrote:
  > > In article <LfSdnaBf84E_XQbdRVn-tA.DeleteThis@britsys.net>,
   > >> I hope their is an easy fix for this.
 >
 > I tryed with 2 different server and 2 different version of PHP/Apache
 > and all of them give the same problem, but if you turn off PHP then
 > you have the correct behavour (of course your PHP file isn't processed
 > anymore).
 >
 > So I think is a bug in the PHP module...

I think it's a feature Wink but I found 2 servers not presenting this
behaviour :

the first runs PHP 4.2.2 and Apache/1.3.12 (Linux i386)
the second runs PHP 4.3.2 and Apache/1.3.29 (Mac OS X)

I guess there is a compilation flag, or php extension that allow this
behaviour.

patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
patpro2

External


Since: Mar 21, 2004
Posts: 50



(Msg. 6) Posted: Sat May 08, 2004 3:12 am
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <patpro-1E8FDF.23184407052004.RemoveThis@individual.net>,
patpro ~ patrick proniewski <patpro.RemoveThis@boleskine.patpro.net> wrote:

  > > So I think is a bug in the PHP module...
 >
 > I think it's a feature Wink


finally I got it :

if you use Options +Multiview in a directory (or server wide), your PHP
can be reached at filename/ in addition to filename.php. It occurs only
when mod_php is running.


patpro

--
je cherche un poste d'admin UNIX/Mac
<a style='text-decoration: underline;' href="http://patpro.net/cv.php" target="_blank">http://patpro.net/cv.php</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 7) Posted: Sat May 08, 2004 8:39 am
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

patpro ~ patrick proniewski <patpro.TakeThisOut@boleskine.patpro.net> wrote:
 > if you use Options +Multiview

Yep, you're right... I wonder if it's a problem in the
Multiview handling or in the PHP module...

Davide

--
| When all other means of communication fail, try words.
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
matt13

External


Since: May 07, 2004
Posts: 3



(Msg. 8) Posted: Tue May 11, 2004 3:24 am
Post subject: Re: Apache and PHP files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> wrote in message
news:2g3a58F45se6U1@uni-berlin.de...
 > patpro ~ patrick proniewski <patpro DeleteThis @boleskine.patpro.net> wrote:
  > > if you use Options +Multiview
 >
 > Yep, you're right... I wonder if it's a problem in the
 > Multiview handling or in the PHP module...
 >
 > Davide
 >
 > --
 > | When all other means of communication fail, try words.
 > |
 > |
 > |

Thanks for all the help here! So help me understand, is the Multiview
compiled into Apache in which the PHP module reads? So for me to fix this
problem I need to re-compile Apache, or is there a way to disable Multiview
within the .conf file?

Ideally I would like the / to return a dir or if the dir does not exist, an
error......

Matt<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache and PHP files 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Where does apache put log files? - Im trying to locate my websites log files so i can set up some free website stats software I have ftp access to the server and found a folder called: /httpd-2.0.46 Im guessing this is the folder for the apache2 installation?. My website virtual info..

Apache not serving .wml files - Quite a simple one this, I just cannot figure whats going wrong? I have both apache 1.3 and 2.0 running happily on my win XP machine, I am routing my IP address to apache using no-ip.com. With this simple set up I can type http:ant.servebeer.com and up...

Spoofing log files in Apache? - Running 1.3.29 and getting some really odd requests in the log file. Is there any way that apache could be fed bogus ip addresses, page requests, etc??? Thanks! -- =-=-= Doug

Red Hat 9: Apache compresses JPEG files - I'm using Red Hat 9. Since I upgraded to lastest Apache security release (2.0.40-21.11) I've found that all files (including JPEG) are sent compressed with gzip to client. I configured my server some time ago to compress plain text files using deflate..

apache serving incomplete files - Hello, I've done some searching on this subject but have come up with nothing so I'm hoping someone here can help. I'm currently running apache 2.0.46 on my home machine and I have a couple of vitual hosts set-up. My problem is that apache appears to...
   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 ]