You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Richard Ibbotson <ri...@sheflug.co.uk> on 2003/04/29 21:45:26 UTC

[users@httpd] Re: Confused

Hi

Tried the following...

> I don't know about Apache 2.0, but in 1.3, commonhttpd.conf (or
> whatever). You just have to change the document root directive and
> add premissions to your folder.
>
> DocumentRoot /home/user
> <directory /home/user>
> Options Indexes FollowSymLinks Includes
> AllowOverride All
> </directory>


Which is....


#DocumentRoot "/usr/local/apache2/htdocs"
DocumentRoot "/home/user/public_html"
#
# Each directory to which Apache has access can be configured with 
#respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
    Options FollowSymLinks Includes
    #AllowOverride None
     AllowOverride all
</Directory>


Definitely did chmod 755...

and then I did ........   /usr/local/apache2/bin/apachectl -k restart
and when I tried to get back into my server box the following error 
came up....

Forbidden
You don't have permission to access / on this server.
Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80

Any further suggestions ?



-- 
Richard
www.sheflug.co.uk

If you listen on a quiet night you can hear
the sound of a Windows 2000 Server reboot

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Confused

Posted by Cody Harris <hc...@ns.sympatico.ca>.
Make sure the index file can be read by Apache (chmod, chown, or chgrp, 
it's your choice)

At 09:07 PM 4/29/2003 +0100, you wrote:
>Hi
>
> > Forbidden
> > You don't have permission to access / on this server.
> > Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80
>
>
>further to the last one.  I've answered my own question.  Sorry about
>that :)   Problem now is that whilst I can view any documents in ...
>/usr/local/apache2/htdocs  I still can't view anything in
>/home/user/public_html even after putting an index.html page in
>there.
>
>So, presumably I have to change something else ?
>
>
>
>
>--
>Richard
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Confused

Posted by Richard Ibbotson <ri...@sheflug.co.uk>.
Hi

> Forbidden
> You don't have permission to access / on this server.
> Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80


further to the last one.  I've answered my own question.  Sorry about 
that :)   Problem now is that whilst I can view any documents in ...
/usr/local/apache2/htdocs  I still can't view anything in 
/home/user/public_html even after putting an index.html page in 
there.

So, presumably I have to change something else ?




-- 
Richard

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Confused

Posted by Mystery Admin <my...@whatfantasiesmaycome.com>.
Try adding "Indexes" to your Options, as in the example supplied to you:

> > <directory /home/user>
> > Options Indexes FollowSymLinks Includes
> > AllowOverride All
> > </directory>
> 

Otherwise, you will need an "index.html" file in that directory.

Good luck!

Peace...

Tom


On Tue, 29 Apr 2003 at 13:04:57, Richard Ibbotson wrote:

> Hi
> 
> Tried the following...
> 
> > I don't know about Apache 2.0, but in 1.3, commonhttpd.conf (or
> > whatever). You just have to change the document root directive and
> > add premissions to your folder.
> >
> > DocumentRoot /home/user
> > <directory /home/user>
> > Options Indexes FollowSymLinks Includes
> > AllowOverride All
> > </directory>
> 
> 
> Which is....
> 
> 
> #DocumentRoot "/usr/local/apache2/htdocs"
> DocumentRoot "/home/user/public_html"
> #
> # Each directory to which Apache has access can be configured with 
> #respect
> # to which services and features are allowed and/or disabled in that
> # directory (and its subdirectories).
> #
> # First, we configure the "default" to be a very restrictive set of
> # features.
> #
> <Directory />
>     Options FollowSymLinks Includes
>     #AllowOverride None
>      AllowOverride all
> </Directory>
> 
> 
> Definitely did chmod 755...
> 
> and then I did ........   /usr/local/apache2/bin/apachectl -k restart
> and when I tried to get back into my server box the following error 
> came up....
> 
> Forbidden
> You don't have permission to access / on this server.
> Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80
> 
> Any further suggestions ?
> 
> 
> 
> -- 
> Richard
> www.sheflug.co.uk
> 
> If you listen on a quiet night you can hear
> the sound of a Windows 2000 Server reboot
> 
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org



___________________
http://jawmail.org/


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Confused

Posted by BAO RuiXian <ru...@pp.inet.fi>.

Richard Ibbotson wrote:
> Hi

> 
> #DocumentRoot "/usr/local/apache2/htdocs"
> DocumentRoot "/home/user/public_html"
> #
> # Each directory to which Apache has access can be configured with 

> <Directory />
>     Options FollowSymLinks Includes
>     #AllowOverride None
>      AllowOverride all
> </Directory>

Change above <Directory /> to <Directory /home/user/public_html>, which 
is where you visit from the browser.

> 
> Definitely did chmod 755...

At where you did chmod 755? You should made chmod 755 to your 
DocumentRoot directory.

Best

Bao

> and then I did ........   /usr/local/apache2/bin/apachectl -k restart
> and when I tried to get back into my server box the following error 
> came up....
> 
> Forbidden
> You don't have permission to access / on this server.
> Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80
> 
> Any further suggestions ?
> 
> 
> 




---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: Confused

Posted by Cody Harris <hc...@ns.sympatico.ca>.
Add the add "Allow from all". In the <directory>

At 08:45 PM 4/29/2003 +0100, you wrote:
>Hi
>
>Tried the following...
>
> > I don't know about Apache 2.0, but in 1.3, commonhttpd.conf (or
> > whatever). You just have to change the document root directive and
> > add premissions to your folder.
> >
> > DocumentRoot /home/user
> > <directory /home/user>
> > Options Indexes FollowSymLinks Includes
> > AllowOverride All
> > </directory>
>
>
>Which is....
>
>
>#DocumentRoot "/usr/local/apache2/htdocs"
>DocumentRoot "/home/user/public_html"
>#
># Each directory to which Apache has access can be configured with
>#respect
># to which services and features are allowed and/or disabled in that
># directory (and its subdirectories).
>#
># First, we configure the "default" to be a very restrictive set of
># features.
>#
><Directory />
>     Options FollowSymLinks Includes
>     #AllowOverride None
>      AllowOverride all
></Directory>
>
>
>Definitely did chmod 755...
>
>and then I did ........   /usr/local/apache2/bin/apachectl -k restart
>and when I tried to get back into my server box the following error
>came up....
>
>Forbidden
>You don't have permission to access / on this server.
>Apache/2.0.45 (Unix) Server at 10.0.0.12 Port 80
>
>Any further suggestions ?
>
>
>
>--
>Richard
>www.sheflug.co.uk
>
>If you listen on a quiet night you can hear
>the sound of a Windows 2000 Server reboot
>
>---------------------------------------------------------------------
>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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org