|
Home > Archive > Apache Server configuration support > January 2007 > documentroot
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Alfred Wallace 2007-01-24, 7:54 am |
| Hi,
In a new apache 2.2 httpd.conf (easyphp),
I try to change documentroot.
and the http://127.0.0.1 returns:
Forbidden
You don't have permission to access / on this server.
even if i try www2 (a new directory i create)
#DocumentRoot "${path}/www"
DocumentRoot "C:/Program Files/EasyPHP 2.0b1/www2"
don't work,
but
#DocumentRoot "${path}/www"
DocumentRoot "C:/Program Files/EasyPHP 2.0b1/www"
works!!!
and
DocumentRoot "c:/www" doesn't work.
Is there somethink special to do in apache2 to change documentroot. Did
someone encounter the same problem??
thx.
| |
|
| On Wed, 24 Jan 2007 11:36:12 +0100, Alfred Wallace <popup@free.Fr> wrote:
> Hi,
>
> In a new apache 2.2 httpd.conf (easyphp),
> I try to change documentroot.
>
> and the http://127.0.0.1 returns:
> Forbidden
> You don't have permission to access / on this server.
>
> #DocumentRoot "${path}/www"
> DocumentRoot "C:/Program Files/EasyPHP 2.0b1/www2"
> don't work,
> but
> #DocumentRoot "${path}/www"
> DocumentRoot "C:/Program Files/EasyPHP 2.0b1/www"
>
> works!!!
>
> and
> DocumentRoot "c:/www" doesn't work.
Check your <Direcory></Directory> configuration.
Usually, it's something like this:
#Normally deny access
<Directory />
Order deny,allow
Deny from all
</Directory>
#Allow access to doc root
<Directory "/path/to/webroot">
Order allow,deny
Allow from all
</Directory>
So you'll have to hunt down (or create) the <Directory> for your new
document-root.
--
Rik Wasmus
| |
| Alfred Wallace 2007-01-24, 7:54 am |
| Thx, it works now.
"Rik" <luiheidsgoeroe@hotmail.com> a écrit dans le message de news:
op.tmnm6nijqnv3q9@misant...
> On Wed, 24 Jan 2007 11:36:12 +0100, Alfred Wallace <popup@free.Fr> wrote:
>
>
> Check your <Direcory></Directory> configuration.
>
> Usually, it's something like this:
>
> #Normally deny access
> <Directory />
> Order deny,allow
> Deny from all
> </Directory>
>
> #Allow access to doc root
> <Directory "/path/to/webroot">
> Order allow,deny
> Allow from all
> </Directory>
>
> So you'll have to hunt down (or create) the <Directory> for your new
> document-root.
> --
> Rik Wasmus
|
|
|
|
|