ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> httpd-users
httpd-users
Re: [users@httpd] Forbidden You don't have permission to access /site/ Error
by Pubudu Premachandra other posts by this author
Mar 2 2006 3:32AM messages near this date
Re: [users@httpd] Forbidden You don't have permission to access /site/ Error | RE: [users@httpd] Forbidden You don't have permission to access /site/ Error
This happend due to selinux security enforcement.
I found the solution by updating the security policies as
chcon -R -t httpd-sys-content/usr/mysite

Thank for your comment.

On 2/28/06, Jerry McAllister <jerrymc@[...].edu>  wrote:
> 
>  >
>  > ------=_Part_22734_12110787.1141118677219
>  > Content-Type: text/plain; charset=ISO-8859-1
>  > Content-Transfer-Encoding: quoted-printable
>  > Content-Disposition: inline
>  >
>  > I installed var on a seperate /var partition. and I need mysite to have
>  thi=
>  > s
>  > recomended access control.
>  >
>  > chown -R apache:apache /var/mysite
>  > I entered these in httpd.conf at end of it.
>  >
>  > <Directory "/var/mysite">
>  > DirectoryIndex index.php
>  > AcceptPathInfo on
>  > AllowOverride None
>  > Options None
>  > Order allow,deny
>  > Allow from all
>  > </Directory>
>  >
>  > Alias /site"/var/mysite"
>  >
>  > ****But following error occures
>  >
>  > Forbidden
>  >  on this server.
>  >
>  > I did all this according to recomended munual (of moodle- opensource
>  > product.) I have successfully ran this previously for  /usr/local/mysite
>  >
>  >  But this time it fails. Help me
> 
>  Hmmm.   One thought that comes to mind is do you have indexing
>  allowed in that directory?    If not and you address it as a
>  directory and you don't have an index.html (index.htm or any other
>  that you have allowed) in that directory, it will give that error
>  message.
> 
>  Try sticking some index.html in the directory it is going to and see
>  if it makes a difference.   If not, ignore this.
> 
>  ////jerry
> 
>  >
>  >
>  > **What I feel is that my alias don't work properly or that *** site
>  > permissions gives error. but note that I have tryed by giving full
>  > permissions also, but it also gives the same error.
>  > Thank you,
>  > pubudu
>  >
>  > ------=_Part_22734_12110787.1141118677219
>  > Content-Type: text/html; charset=ISO-8859-1
>  > Content-Transfer-Encoding: quoted-printable
>  > Content-Disposition: inline
>  >
>  > <div>
>  > <p><font size=3D"2">I installed var&nbsp;on a seperate /var partition.
>  and =
>  > I need mysite to have this recomended access control.</font></p>
>  > <p><font size=3D"2">chown -R apache:apache /var/mysite </font></p></div>
>  > <div>I entered these in httpd.conf at end of it.</div>
>  > <div>&nbsp;</div>
>  > <div>&lt;Directory &quot;/var/mysite&quot;&gt; </div>
>  > <div>DirectoryIndex index.php </div>
>  > <div>AcceptPathInfo on </div>
>  > <div>AllowOverride None </div>
>  > <div>Options None </div>
>  > <div>Order allow,deny </div>
>  > <div>Allow from all </div>
>  > <div>&lt;/Directory&gt; </div>
>  > <div>&nbsp;</div>
>  > <div>Alias /site&quot;/var/mysite&quot;</div>
>  > <div>&nbsp;</div>
>  > <div>****But following error occures</div>
>  > <div><font size=3D"2"></font>&nbsp;</div>
>  > <div><font size=3D"2">Forbidden</font></div>
>  > <div><font size=3D"2">&nbsp;on this server.</font></div>
>  > <div><font size=3D"2"></font>&nbsp;</div>
>  > <div><font size=3D"2">I did all this according to recomended munual (of
>  moo=
>  > dle- opensource product.) I have successfully ran this previously
>  for&nbsp;=
>  >  /usr/local/mysite </font></div>
>  > <div>&nbsp;</div>
>  > <div>
>  > <div>But this time it fails. Help me</div>
>  > <div>
>  > <p><font size=3D"2">&nbsp;</font></p><font size=3D"2">**What I feel is
>  that=
>  >  my alias don't work properly or that *** site permissions gives error.
>  but=
>  >  note that I have tryed by giving full permissions also, but it also
>  gives =
>  > the same error.=20
>  > </font></div></div>
>  > <div>Thank you,</div><span></span><span class=3D"sg">
>  > <div>pubudu</div><span></span></span>
>  >
>  > ------=_Part_22734_12110787.1141118677219--
>  >
> 
> 
>  ---------------------------------------------------------------------
>  The official User-To-User support forum of the Apache HTTP Server Project.
>  See <URL:http://httpd.apache.org/userslist.html> for more info.
>  To unsubscribe, e-mail: users-unsubscribe@[...].org
>     "   from the digest: users-digest-unsubscribe@[...].org
>  For additional commands, e-mail: users-help@[...].org
> 
> 
Attachments:
unknown1
unknown2

Thread:
Pubudu Premachandra
Jerry McAllister
Pubudu Premachandra
Boyle Owen
Boyle Owen
Pubudu Premachandra

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved