How to create a home directory in apache?

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

How to create a home directory in apache?

Postby Izzy123 » 07. September 2012 14:45

So I have the latest version of xampp installed, and had apache running successfully. I have a folder of HTML and CSS files, I need to create a home directory for my files in apache, but I'm not sure how to do it. Do I just copy and paste the folder into \xampp\htdocs? Does that create a home directory for the files? I'm just really confused, any help will be appreciated, thanks.
Posts: 6
Joined: 07. September 2012 14:40
Operating System: Windows 7

Re: How to create a home directory in apache?

Postby JonB » 07. September 2012 18:13

The 'home' directory is really '\xampp\htdocs' (its the DocumentRoot in httpd.conf). If you place a folder in \htdocs, the URL to access them will become http://localhost/foldername/whatever

either approach is perfectly OK - the 'home' thingie is really a Unix/Linux carryover idea. On those platforms ,including Macs, a users files are stored in a root folder '/home/username'.

Good Luck
User avatar
AF Moderator
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 53 guests