For all your htm / html files and links to them.
chmod 644
or
chmod 664
Do not set the execute permissions bit for htm, html or image files. It's
not the right permission for these file types and there could be an access
restriction directive some place that blocks access to content files with
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss-
bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan
Become root. Although you could do this with sudo, it's more of a pain.
You must ensure the auditd service is installed and started.
yum -y install auditd
To be more clear, Apache WON'T serve content out of home directories. It
doesn't matter if FollowSymlinks is on.
You can move the content to /var/somewhere and symlink to it - ensuring
that FollowSymlinks is on. (E.g. ln -s /var/somewhere /var/www/html/foo)
and http://localhost/foo will display
well, browsing the web somewhere (and i forget where), it
was suggested that i touch /.autorelabel and reboot.
i did that and now all is well. thank you all for your
suggestions.
now, all i need to do is get my cgi scripts working again.
life is hard.
ole dan
j. daniel moylan
84 harvard ave
running fc 20 on acer aspire one.
apache (httpd) running:
/etc/httpd/conf/httpd.conf
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
On Tue, Dec 09, 2014 at 04:45:21PM -0500, dan moylan wrote:
/var/www/off-lnk.htm (linked to /home/moylan/www/lnk/off.htm -- same file)
produces the following:
Forbidden
You don't have permission to access off-lnk.htm on this server.
Most likely explanation is that your home directory, or a
Apache also has a module (mod_userdir) and related directives for serving
content from user home directories. See
http://httpd.apache.org/docs/current/howto/public_html.html
If you remove the symbolic link 'moylan' and specify (in httpd.conf, or
conf.d/mysite.conf)
UserDir www
Then
sudo a2enmod
/root is probably chmod'ed 700, so group apache cannot follow the link.
Everything in the path /home/moylan/www/link probably has at least the
executable bit set in the third digit of its chmod settings, so apache can
locate the /home/moylan/www/link/off.htm file, but apache doesn't have
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss-
bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan
Forbidden
You don't have permission to access off-lnk.htm on this server.
Also check selinux.
Become root. Although you could do this with sudo, it's more of a pain.
It's easier to just turn on the appropriate boolean:
(as root):
setsebool -P httpd_enable_homedirs on
On 12/9/2014 5:51 PM, Edward Ned Harvey (blu) wrote:
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss-
bounces+blu=nedharvey@blu.org] On Behalf Of dan moylan
Forbidden
On 12/9/2014 4:45 PM, dan moylan wrote:
what am i missing?
An excerpt from your Apache error log that would indicate the reason for
the behavior that you are seeing. Plenty of excellent suggestions have
been made for correcting various possible problems but you should check
the logs so that
From: discuss-bounces+blu=nedharvey@blu.org [mailto:discuss-
bounces+blu=nedharvey@blu.org] On Behalf Of Matthew Gillen
It's easier to just turn on the appropriate boolean:
(as root):
setsebool -P httpd_enable_homedirs on
Don't take medicine until you know what you're treating - If
derek martin writes:
Most likely explanation is that your home directory, or a path
component in it, is not readable by the user as which the server runs.
moylan ~[1045] ls -ld /home/moylan
drwxr-xr-x. 79 moylan moylan 4096 141209:1347 /home/moylan/
moylan ~[1046] ls -ld /home/moylan/www
13 matches
Mail list logo