This operation is forbidden when accessing from external network


#1

Steps to reproduce

  1. Login to owncloud form extrernal network
  2. Try to open a folder
  3. Get "This operation is forbidden message", however files in root folder (instruction docs) can be accessed

Expected behaviour

The folder should open

Actual behaviour

a message appeared "This operation is forbidden" and folder did not open.

Server configuration

Operating system: Ubuntu 14.04

Web server:: Apache 2.4.7 (Ubuntu)

Database: MySQL

PHP version: 5.5.9

ownCloud version: ownCloud 9.1.6 (stable)

Updated from an older ownCloud or fresh install: Updated from last 8.x version

Where did you install ownCloud from: via PPA

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

No errors have been found.

The content of config/config.php:
https://paste.ubuntu.com/25430232/

List of activated apps:

Enabled:
- activity: 2.3.2
- comments: 0.3.0
- configreport: 0.1.1
- dav: 0.2.7
- federatedfilesharing: 0.3.0
- federation: 0.1.0
- files: 1.5.1
- files_pdfviewer: 0.8.1
- files_texteditor: 2.1
- files_trashbin: 0.9.0
- files_versions: 1.3.0
- files_videoplayer: 0.9.8
- firstrunwizard: 1.1
- gallery: 15.0.0
- notifications: 0.3.0
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- templateeditor: 0.1
- updatenotification: 0.2.1
Disabled:
- encryption
- external
- files_antivirus
- files_external --> had to be disabled to gain access on local network
- files_sharing
- user_external
- user_ldap

Are you using external storage, if yes which one: NO. but Data is on RAID array and at /data/owncloud and not on /var/www/owncloud/data
there is also a folder named files_external with a certficate inside it there.

Are you using encryption: NO

Are you using an external user-backend, if yes which one: NO it's a default install

Client configuration

Browser: FF, Chrome, Edge, Explorer

Operating system: Windows 10

Logs

Web server error log

Insert your webserver log here

[Mon Aug 28 09:28:32.332430 2017] [autoindex:error] [pid 4535] [client myworkIP:36246] AH01276: Cannot serve directory /var/www/owncloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive, referer: https://myhomeIP/owncloud/core/doc/user/index.html

ownCloud log (data/owncloud.log)

https://paste.ubuntu.com/25430211/

Browser log /

`
It's a work PC. Browser is not the issue.


#2

You can fix the web server error with a change in the Apache configuration.

Did you set right permissions for your data? try it with executing the bash script from here, please.


#3

I haven' tnoticed that the skript changed slightly. so with new skritp it seems to work (at least over mobile phone).

However as fo rthe apache i can not find those lines in any of the htaccess files or in the apache config file. i will need to revisit the site on mOnday from work to see if the error is still present.


#4

site can be normally accessed from mobile phone and from my father's home but i still get the access forbidden from work when i try to access folders or open the manual files. but i can actally login to the owncloud and even administer it without any issues..


#5

Can you tell us the forbidden message and perhaps the log content, please?
It can be that your employer has got specific firewall rules. You are allowed to do only specific things there. Ask your IT in the company. Every company has got his own security rules...