Hi,
when i use apache httpd under windows i have no problem to setup it, however under fedora 13 i have some little problems. I guess it is due to my limited knowledge of Fedora 13 and apache collaboration.
like under Windows OS, i would like to have different directories under fedora which will represent my different tools. for example if my fedora server address is 192.168.1.2 and i have a tool named 'tool1' URL should look like: 192.168.1.2/tools1/
where 'tool1' should be be found in /var/www/html/tool1/ directory.
how can i do that under fedora ? Should the directory have particular rights ?
What happens when you try to enter using http://yourip/tool1/??? It should work just like in windows. Did you get any error? Mensaje enviado desde mi BlackBerry® de +Móvil!
-----Original Message----- From: Alain Roger raf.news@gmail.com Sender: users-bounces@lists.fedoraproject.org Date: Mon, 27 Sep 2010 08:17:45 To: Community assistance, encouragement,and advice for using Fedora.fedora-list@redhat.com Reply-To: Community support for Fedora users users@lists.fedoraproject.org Subject: apache 2.2.16 and directory
it works till the moment i do not use a .htaccess file in the /test folder :-(
On Mon, Sep 27, 2010 at 8:25 AM, davidapr@gmail.com wrote:
What happens when you try to enter using http://yourip/tool1/??? It should work just like in windows. Did you get any error? Mensaje enviado desde mi BlackBerry® de +Móvil!
-----Original Message----- From: Alain Roger raf.news@gmail.com Sender: users-bounces@lists.fedoraproject.org Date: Mon, 27 Sep 2010 08:17:45 To: Community assistance, encouragement,and advice for using Fedora.< fedora-list@redhat.com> Reply-To: Community support for Fedora users < users@lists.fedoraproject.org> Subject: apache 2.2.16 and directory
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
-- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
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.