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.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux