Page 1 of 1

can't change my DOCUMENTROOT

PostPosted: 21. June 2007 12:55
by coldpulse250
i use to save all my html and php files in a folder called webroot outside of htdocs (i edited the conf file and changed two lines to point to the webroot folder).

I decided to try out drupal to see what the fuss was all about. It didn't work out so well so I deleted it from the webroot folder. Afterwards, i couldn't access the webroot files from localhost. I uninstalled and reinstalled xampp, edited the config file to make the documentroot point to webroot, but I still get the 404 error in my browser when i type up localhost in the address bar.

i copied the webroot folder in to htdocs and i still can't access it from my browser!

ps. the files open up normally when they in the htdocs folder, but i'm trying to avoid the mess

help

anybody?

PostPosted: 21. June 2007 23:59
by coldpulse250
care to help this noob

PostPosted: 22. June 2007 13:12
by MikesTooLz
Open your xampp/apache/conf/extra folder and edit your V-Host file. Add this to the bottom.


Code: Select all
<VirtualHost *:80>
    ServerAdmin user@yourdomain.com
    DocumentRoot "C:/Program Files/xampp/yourdomain_com"
    ServerName yourdomain.com
    ServerAlias www.yourdomain.com
    ErrorLog @rel_logfiledir@yourdomain.com-error_log
    CustomLog @rel_logfiledir@yourdomain.com-access_log common
</VirtualHost>



replace yourdomain with what ever your domain name is then create the folder:

C:/Program Files/xampp/yourdomain_com