SUSE / openSUSEThis Forum is for the discussion of Suse Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
These logs are after changing Options to All from my previous Options
Code:
linux:~ # cat /etc/apache2/conf.d/owncloud.conf
Alias /owncloud "/srv/www/htdocs/owncloud/"
<Directory "/srv/www/htdocs/owncloud">
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /srv/www/htdocs/owncloud
SetEnv HTTP_HOME /srv/www/htdocs/owncloud
</Directory>
<Directory "/srv/www/htdocs/owncloud/data/">
# just in case if .htaccess gets disabled
Require all denied
</Directory>
## Please enable this manually, if needed. See also
## https://doc.owncloud.org/server/8.2/admin_manual/issues/index.html#apple-ios
# Redirect 301 /.well-known/carddav /owncloud/remote.php/carddav
# Redirect 301 /.well-known/caldav /owncloud/remote.php/caldav
<Directory "/srv/www>
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
You have two errors in this last section. You're missing a trailing slash and a quote. It should look like this:
Code:
<Directory "/srv/www/">
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
</Directory>
I made the changes as per your suggestion, but still same error
Code:
[Fri Nov 04 11:57:45.260263 2016] [core:error] [pid 1092] [client 192.168.1.101:60241] AH00037: Symbolic link not allowed or link target not accessible: /srv/www
[Fri Nov 04 11:57:45.454518 2016] [core:error] [pid 1092] [client 192.168.1.101:60241] AH00037: Symbolic link not allowed or link target not accessible: /srv/www, referer: http://192.168.1.102/owncloud/
Is there anything security settings needs to be tweaked from OS side?
linux:~ # service boot.apparmor stop
service: no such service boot.apparmor
linux:~ # yast
-bash: yast: command not found
linux:~ # yast2
-bash: yast2: command not found
Nope, told you I don't run suse, so I'm familiar with it.
But still it's strange that there is no yast!!
Anyway if it isn't an apparmor restriction, I would ditch the symlink(s) and point the Alias to the actual /ssr directory
Code:
Alias /owncloud "/ssr/www/htdocs/owncloud/"
<Directory "/ssr/www/htdocs/owncloud">
Options All
AllowOverride All
<IfModule mod_dav.c>
Dav off
</IfModule>
SetEnv HOME /ssr/www/htdocs/owncloud
SetEnv HTTP_HOME /ssr/www/htdocs/owncloud
</Directory>
#Replace all other occurrences of /srv with /ssr
..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.