data directory accessible? .htaccess not working??

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
jay
Beginner
Posts: 12
Joined: Fri Apr 13, 2012 4:10 pm

data directory accessible? .htaccess not working??

Postby jay » Thu Nov 29, 2012 4:14 pm

Hello,

I just updated owncloud 4.5.2 to 4.5.3 on my server. Everything works fine (in some cases even better than before), but then I noticed the following warning in the admin section:

"Your data directory and your files are probably accessible from the internet. The .htaccess file that ownCloud provides is not working. We strongly suggest that you configure your webserver in a way that the data directory is no longer accessible or you move the data directory outside the webserver document root."

This is weird because I had nothing changed in /data, just updated, and there was no warning before. Even more strange: the .htaccess file in /data still is from the date when I installed 4.5.2 ...

I had a look into the forum and found that same bug as something in 5.0 alpha from May/jun 2012 ... ist this a zombie.bug??

Is there a solution? or maybe a .htaccess file that I could install instead??

Thanks for your help!

Jay

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: data directory accessible? .htaccess not working??

Postby RandolphCarter » Thu Nov 29, 2012 10:58 pm

You are using Apache server, right? Check if you can "manually" access your data directory via http(s)://path.to.your.owncloud/data/

jay
Beginner
Posts: 12
Joined: Fri Apr 13, 2012 4:10 pm

Re: data directory accessible? .htaccess not working??

Postby jay » Fri Nov 30, 2012 11:41 am

Yes, it is obviously apache.

I get a blank page, when trying to access /data, and the owncloud "access denied" page, when trying to open the sub directories.

Everything okay?

Thanks for your help!!

Jay

PS: And sorry for the double-post, I wasn't sure which forum would be the right one ...

pad4651
Newbie
Posts: 1
Joined: Mon Dec 03, 2012 7:15 pm
ownCloud version: 4.5.3

Re: data directory accessible? .htaccess not working??

Postby pad4651 » Mon Dec 03, 2012 7:19 pm

I also have the same issue. if i acess "www.server.com/data/user/files/somefile.txt" i can view it, if i don't specify a file i will get a "access forbidden" page.

Update:
solved my problem, maybe it'll help you.

I removed .htacess from owncloud root
then changed
/config/config.php installed = true to "insalled = false"

then just reloaded /index.php input username/pass and clicked finish install. The warning has now disapeared and i can no longer access files via address bar
--

PAD

sepdau
Beginner
Posts: 25
Joined: Mon Aug 27, 2012 3:52 am

Re: data directory accessible? .htaccess not working??

Postby sepdau » Tue Jan 22, 2013 4:30 am

any solution I have the same problem!
.htaccess doesn't work

User avatar
RandolphCarter
ownCloud master
Posts: 5134
Joined: Wed May 30, 2012 8:42 am
ownCloud version: 8.1.1
Webserver: Apache
Database: MySQL
OS: Linux
PHP version: 5.5.x

Re: data directory accessible? .htaccess not working??

Postby RandolphCarter » Fri Jan 25, 2013 10:55 am

What does your .htaccess in the data folder look like?
Take a look at this post how it looks like in my case (and it seems to be working): viewtopic.php?f=3&t=7067#p16022


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: No registered users and 0 guests