Re: apache 2.2.16 and directory

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

 



On Mon, 2010-09-27 at 08:17 +0200, Alain Roger wrote:
> where 'tool1' should be be found in /var/www/html/tool1/ directory.
>  
> how can i do that under fedora ?

Simply by creating the files and directories.

> Should the directory have particular rights ?

It should be readable and executable by "other" users, and the files
should be readable by other users (the third set of rwx permissions).
The files should be owned by someone other than root or the apache user,
this stops them be writeable through the webserver.

e.g. drwxr-xr-x  tim  tim  /var/www/html/tim/
     -rw-r--r--  tim  tim  /var/www/html/tim/test.html

Also, SELinux contexts should be appropriately set.  Which they should
be, if you create or copy the files there.  But will not be if you make
them elsewhere, then move them there (they'd keep the default contexts
for the location that they were originally created in).

My directory and file SELinux contexts:
unconfined_u:object_r:httpd_sys_content_t:s0

An alternative, found if I were serving files from a public_html
directory within my own homespace, would be:
unconfined_u:object_r:httpd_user_content_t:s0

You can use "ls -Z" to see the SELinux contexts.

-- 
[tim@localhost ~]$ uname -r
2.6.27.25-78.2.56.fc9.i686

Don't send private replies to my address, the mailbox is ignored.  I
read messages from the public lists.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[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