documentroot
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > documentroot




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    documentroot  
Alfred Wallace


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-07 12:54 PM

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.















[ Post a follow-up to this message ]



    Re: documentroot  
Rik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-07 12:54 PM

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





[ Post a follow-up to this message ]



    Re: documentroot  
Alfred Wallace


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-07 12:54 PM

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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:25 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register