That's intriguing. Since it's a clean server and you didn't put it there, it makes me wonder where it came from.
Magento docs refer to var/.htaccess and not /var/.htaccess, so that's a relative path, inside Magento's install directory. Other posts I see just refer to /var/.htaccess as an example, when explaining how apache looks for .htaccess files recursively, all up to the top level directory. Then I went further and confirmed that there aren't any official Ubuntu 12.04 packages that install this file: http://packages.ubuntu.com/search?searchon=contents&keywords=var%2F.htaccess&mode=&suite=precise&arch=any Anyway, you've solved your problem. I'm doing a lot of sysadmin work in the last years, so these kind of "mysteries" probably interest me too much for my own good :) Regards, Ales On Monday, April 15, 2013 3:23:02 PM UTC+2, [email protected] wrote: > > > > El lunes, 15 de abril de 2013 01:13:14 UTC+2, LightDot escribió: >> >> The .htaccess is an Apache issue, doesn't have anything to do with web2py >> as such. Better said, it's not really an Apache issue either, as the >> .htaccess and Apache worked as expected, according to the instructions in >> the .htaccess. >> >> You should be talking to whoever put the file there, as he/she obviously >> didn't want any pages to be accessible from anywhere under /var >> directory... What's the reason for this I can only guess. >> > > This was in a fresh ubuntu server 12.04. I didn't put it there. The > literal text appears in the web, as an issue with some installs of moodle > and a software called magento. So someone might have this problem later, I > guess. I just wanted to warn future web2py users, and confirm it is safe to > remove the file. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

