Re: why is a .txt file being run as a php script?

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

 



10/08/2012 11:39 AM, Tom Horsley wrote:
this is widely known and caused by the "MultiViews" option
and can also lead to execute PHP if images conatin code
and saved with .php.gif

But when I read the docs for that (which, by the way, make
my head want to explode) it sounds like MultiViews is something
that will try to find a different file if the requested
one doesn't exist, but I'm *requesting* the .php.txt file
and it does exist, so I'm still confused, but when I get
home I'll try re-enabling php and turning off MultiViews
and see what happens.

Pleasure to offer some help, Tom.

I've been struggling/learning with Apache for many years. It is a very powerful tool.

MultiViews has to do with a thing called "Content Negotiation". Helpful in multilingual situations where it may be desired to return something in a specific language, whether content or error pages.

*Very clever people could think up other uses*

Unfortunately it can match and grab the wrong files if allowed to roam or is not properly tethered. Only enable MultiViews for resources that absolutely require them. Make sure to specify the Directory, Location, or File directives when using it.

For further head explosion refer please refer to
http://httpd.apache.org/docs/2.2/content-negotiation.html


Thanks.

P.S. I'm not sure "widely known" is a phrase that should
ever be used with anything on linux :-).

LOL


--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux