root folder...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

root folder...

Post by pleigh »

why is it that in the httpd.conf of my apache, the default serverroot is "C:/server/Apache2" but i can browse my page when i save inside the "C:/server/Apache2/htdocs"? and another...how can i change the root folder?i tried to modify this --> "C:/server/Apache2" to this --> c:/Inetpub/wwwroot ...but there was an error generated...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

you also need to grant rights for the specific folder...

here's a sample

Code: Select all

<VirtualHost *:80>
  ServerName test
  DocumentRoot &quote;F:/websites/test&quote;
  <Directory &quote;F:/websites/test&quote;>
    AllowOverride All
    Options All
  </Directory>
</Virtualhost>
Post Reply