can't change my DOCUMENTROOT

Problems with the Windows version of XAMPP, questions, comments, and anything related.

who will help me

Poll ended at 22. June 2007 12:55

me
0
No votes
me
0
No votes
me
1
100%
 
Total votes : 1

can't change my DOCUMENTROOT

Postby coldpulse250 » 21. June 2007 12:55

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
coldpulse250
 
Posts: 2
Joined: 21. June 2007 12:35

anybody?

Postby coldpulse250 » 21. June 2007 23:59

care to help this noob
coldpulse250
 
Posts: 2
Joined: 21. June 2007 12:35

Postby MikesTooLz » 22. June 2007 13:12

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
MikesTooLz
 
Posts: 7
Joined: 21. June 2007 18:09


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 68 guests