Re: nextcloud with apache on fedora 38

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2023-08-27 at 19:30 +0200, François Patte wrote:
> For instance with selinux nextcloud help gives:
> <quote>
> semanage fcontext -a -t httpd_sys_rw_content_t 
> '/var/www/html/nextcloud/config(/.*)?'
> semanage fcontext -a -t httpd_sys_rw_content_t 
> '/var/www/html/nextcloud/apps(/.*)?'
> semanage fcontext -a -t httpd_sys_rw_content_t 
> '/var/www/html/nextcloud/data(/.*)?'
> semanage fcontext -a -t httpd_sys_rw_content_t 
> '/var/www/html/nextcloud/.user.ini'
> semanage fcontext -a -t httpd_sys_rw_content_t 
> '/var/www/html/nextcloud/3rdparty/aws/aws-sdk-php/src/data/logs(/.*)?'
> # restorecon -Rv '/var/www/html/nextcloud/'
> </quote>
> 
> These files or directories do not exist, apps and data excepted which 
> are located in /var/www/nextcloud.

Good.  You should only have web-serveable files inside /var/www/html,
if you had configuration files in there (like that "help" suggests),
someone could access them by connecting to your IP address.

And web-serveable files can be placed elsewhere, too, you just have to
configure the server for their location, and set the appropriate file
permissions and SELinux contexts.
 
-- 
 
uname -rsvp
Linux 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux