Re: httpd configuration

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

 



On Fri, 2006-06-16 at 08:19 +0200, adel.essafi wrote:
> I have created the public_html directory and done the
> suggested modifications in httpd.conf. I have alors disabled
> the SElinux and the firewall. When trying to access my home
> space I got this :
> 
> http://127.0.0.1/~adel/
> 
> Forbidden
> 
> You don't have permission to access /~adel/ on this server.
> Apache/2.2.0 (Fedora) Server at 127.0.0.1 Port 80
> 
> I have alghout give the 777 rights to all my files (just to be
> sure the all processes will access to my files).

Please don't do that. It's very insecure. Read permission for files and
read+execute permission for directories will be fine.

In your httpd.conf file, immediately below the UserDir section, is a
commented-out section like this:

<Directory /home/*/public_html>
...
</Directory>

You need to uncomment that as well.

There is no need to turn off SELinux protection to do this.
All you should need is:

# restorecon -r /home/*/public_html
# setsebool -P httpd_enable_homedirs 1

Paul.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux