Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Forbidden access

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  "C:\Inetpub\mailroot\Queue" - SCRIPT SO..  
Author Message
user3336

External


Since: Dec 18, 2004
Posts: 3



(Msg. 1) Posted: Sat Dec 18, 2004 8:35 am
Post subject: Forbidden access
Archived from groups: alt>apache>configuration (more info?)

System:
Mandrake Linux CE 10.1
Apache 2.0.50

I've made just this update in the /etc/httpd/conf/htpd2.conf file:

<UserDir>
www
</UserDir>
and I put a single file named index.html in the folder www under my
/home/myname/ path

When I point to the URL http://localhost/~myname/index.html

the browser answer that the access to the resource is forbidden

What have I to do?

Thans.
Luciano.

 >> Stay informed about: Forbidden access 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Dec 18, 2004 9:35 am
Post subject: Re: Forbidden access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-12-18, Mr.Bean <luciano.sch DeleteThis @tiscali.it> wrote:
 > What have I to do?

Read the documentation would be a good idea. Then check in the
error_log what's exactly the error. My reading is: you don't
have the right permission in the /home/whatever/www directory.

Davide

--
I'm not sure that the ability to create routing diagrams similar to
pretzels with mad cow disease is actually a marketable skill.
-- Steve Levin on alt.sysadmin.recovery<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Forbidden access 
Back to top
Login to vote
user3336

External


Since: Dec 18, 2004
Posts: 3



(Msg. 3) Posted: Sat Dec 18, 2004 12:35 pm
Post subject: Re: Forbidden access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide Bianchi wrote:
 > On 2004-12-18, Mr.Bean <luciano.sch.RemoveThis@tiscali.it> wrote:
 >
  >>What have I to do?
 >
 >
 > Read the documentation would be a good idea. Then check in the
 > error_log what's exactly the error. My reading is: you don't
 > have the right permission in the /home/whatever/www directory.
 >
 > Davide
 >
OK, ho letto la documentazione, mi sembrava dovessi abilitare l'accesso
con la direttiva <Directory>.
Ho fatto qualche tentativo, ma senza risultato.
C'è qualche link, oltre la documentazione ufficale di apache.org dove
vedere?
Grazie.
Luciano.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Forbidden access 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 4) Posted: Sat Dec 18, 2004 6:35 pm
Post subject: Re: Forbidden access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mr.Bean" <luciano.sch DeleteThis @tiscali.it> schreef in bericht
news:41C4611D.1010008@tiscali.it...
 > Davide Bianchi wrote:
  > > On 2004-12-18, Mr.Bean <luciano.sch DeleteThis @tiscali.it> wrote:
   > >>What have I to do?
  > > Read the documentation would be a good idea. Then check in the
  > > error_log what's exactly the error. My reading is: you don't
  > > have the right permission in the /home/whatever/www directory.
 > OK, ho letto la documentazione, mi sembrava dovessi abilitare l'accesso
 > con la direttiva <Directory>.
   >>> <UserDir>
   >>> www
   >>> </UserDir>
Come to think of it, this syntax is bogus ...
.... looks like a mix up between: <Directory> and Userdir.
For userdir find useful reading at
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_userdir.html#userdir" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_userdir.html#userdir</a>

 > Ho fatto qualche tentativo, ma senza risultato.
 > C'è qualche link, oltre la documentazione ufficale di apache.org dove
 > vedere?
File acces is controlled by the OS, so Apache has te be granted access to a
file before it can serve it to the world.
File access on Mandreak can, as on any linux, be controlled by commands like
chmod and chown.

Within a directory block you can configure Apache to (not) fulfil a request
of (part of) the worls, by directives Allow Deny and Order
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_access.html" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_access.html</a>

Italian is not the prefered language in this group, in fact only recognizing
5 words in total, I *guessed* your problems ...

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Forbidden access 
Back to top
Login to vote
user3336

External


Since: Dec 18, 2004
Posts: 3



(Msg. 5) Posted: Sun Dec 19, 2004 3:35 am
Post subject: Re: Forbidden access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Italian is not the prefered language in this group, in fact only recognizing
 > 5 words in total, I *guessed* your problems ...
 >
 > HansH
 >
I apologize for italian language, but it was to answer to Davide Bianchi.

Now I have modified the .conf file in this way:

<UserDir>
www
</UserDir>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/*/www>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

I have set two users: user1 and user2 and the configuration above is OK
for user1, but not for user2.
The two users have the same rights on the www folder and over the file
index.html.
It seems there was no difference between user1 and user2, but
<a style='text-decoration: underline;' href="http://localhost/~user1/index.html" target="_blank">http://localhost/~user1/index.html</a> is OK and
<a style='text-decoration: underline;' href="http://localhost/~user2/index.html" target="_blank">http://localhost/~user2/index.html</a> return forbidden access....<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Forbidden access 
Back to top
Login to vote
hans1

External


Since: Mar 29, 2004
Posts: 672



(Msg. 6) Posted: Sun Dec 19, 2004 6:35 am
Post subject: Re: Forbidden access [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Mr.Bean" <luciano.sch.RemoveThis@tiscali.it> schreef in bericht
news:41C52FE4.4040107@tiscali.it...
 > Now I have modified the .conf file in this way:
 > <UserDir>
 > www
 > </UserDir>
So this undocumented syntax does _not_ cause trouble, I'm confused.
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs-2.0/mod/mod_userdir.html#userdir" target="_blank">http://httpd.apache.org/docs-2.0/mod/mod_userdir.html#userdir</a>

 > <Directory />
 > Options FollowSymLinks
 > AllowOverride None
 > </Directory>
 > <Directory /home/*/www>
 > Options Indexes FollowSymLinks
 > AllowOverride None
 > Order allow,deny
 > Allow from all
 > </Directory>
 >
 > I have set two users: user1 and user2 and the configuration above is OK
 > for user1, but not for user2.
 > The two users have the same rights on the www folder and over the file
 > index.html.
The error_log should show you the local path used. If it only shows a
partial path, check the rights at that folder.

 > It seems there was no difference between user1 and user2, but
 > <a style='text-decoration: underline;' href="http://localhost/~user1/index.html" target="_blank">http://localhost/~user1/index.html</a> is OK and
 > <a style='text-decoration: underline;' href="http://localhost/~user2/index.html" target="_blank">http://localhost/~user2/index.html</a> return forbidden access....
Any difference in rights on folders /home/user1/www and /home/user1/www?
Probably mod_userdir needs at least list and perhaps also read right on all
folders at the first level below /home.

HansH<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Forbidden access 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Forbidden access - Hi, I have a w2k OS with an apache server, my php menu shows but the other pages just says Forbidden Access... can anyone help ?

Forbidden!! You don't have permission to access / on this .. - Hallo, justr updated my Mandrake 9.2 to Mandrake 10.0. I use Apache to handle a small library. With Mandrake 9.2 everything worked fine. NOw, when I try to connect to http://www.giorgio.net, I get this message: Forbidden!! You don't have permission to....

apache2 - no access - Directory index forbidden by rule: /.. - hello ng, install apache2 on suse 9.0 prof, but can´t access on client für directories. i create directory under srv/www/htdocs called test and some subdirectories. but i can see only index.html on this directory, no link into subdirectories. why? - ...

Forbidden - I must be missing something.... I'm Running Apache on a win system, just installed. http://server and get "Forbidden, you do not have permission to access / on this system". run http://server/index.htm works fine. It looks to me like Apa...

403 Forbidden Error - My server has been fine for over a year and has, within the past 24 hours, started displaying the following error on all sites: Forbidden You were denied access because: Access denied by access control list. I have no idea what could have done this. ...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]