PHP configuration on Ubuntu

Avi Greenbury lists at avi.co
Mon Nov 11 19:53:42 UTC 2013


Valter Nogueira wrote:
> I am using PHP5 on Ubuntu and by default when I access
>
> http://localhost/mypage
>
> It returns the content of
>
> http://localhost/mypage.php
>
> instead of 404 error.
>
> Where is this behavior configured and how can I turn it off?

This doesn't sound like the default (and apparently isn't on my Saucy 
box here). Are you sure there's no mod_rewrite rules going on? Is the 
.htaccess file empty? Which version of Ubuntu is this?

-- 
Avi





More information about the ubuntu-users mailing list