Re: Apache serving a page that doesn't exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Eric:

Didn't work, I added Options -MultiViews to both the document root and the
specific directory (one below the root) where the page used to be, did an
apachectl stop and start (not graceful as I wanted to be sure everything got
reloaded) and Apache is still serving the source for the deleted page. 

The only thing I can think of is that the deleted page is an html page and the
link is to a php page so the php-fpm processor is not being invoked for some
reason on the link.  But it still shouldn't be able to serve a page that doesn't
exist!

Finally, I figured maybe the MultiViews was generating a map using the only
page. file with an html extension (page.html.old) so I moved it to another
directory, reset the link and I still get the source displayed.  The browser URL
line shows that pagex.html is being displayed and not page.php so Apache must be
ignoring the link.  I think the source gets displayed because the browser has no
idea how to display a page with extension "old".  (not surprising!)

Any suggestions as to where to go next?

Regards,

John
======
On Sat, 2022-12-03 at 15:40 -0500, Eric Covener wrote:
> Sounds like mod_negotiation / MultiViews. If you don't use it
> intentionally, `Options -MultiViews` in your DocumentRoot might help.
> 
> On Sat, Dec 3, 2022 at 3:36 PM John Iliffe <john.iliffe@xxxxxxxxx> wrote:
> > 
> > Apache 2.4.25 on a Fedora server.
> > 
> > Due to an emergency I created an html page saying that a function was
> > unavailable.  The old page (on the apache base directory) was page.php and the
> > emergency page was linked to that as page.php -> pagex.html.  Worked perfectly.
> > 
> > Now the problem is resolved and I renamed the emergency page as pagex.html.old,
> > a soft link to pagex.html -> page.php and the original page is back where it
> > used to be.
> > 
> > If I request page.php I get it as expected BUT if I request pagex.html, which no
> > longer exists, the SOURCE of pagex.html is displayed on the browser. I thought
> > this might be a browser cache issue so I rebooted the workstation and it still
> > happened.  So I rebooted the server and the problem still exists. I checked
> > using ls -l page* and pagex.html does not exist.
> > 
> > If I removed the pagex.html -> page.php link everything works properly but some
> > customers have bookmarked pagex.html so I would like to have this link for them.
> > 
> > Any ideas of what I have forgotten?
> > 
> > Thanks in advance.
> > 
> > John
> > ======
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> > 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux