Setting root to specific directories

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

Setting root to specific directories

Postby tvgemert » 10. July 2007 15:45

Hi,

I'm using XAMPP for local website development. In my XAMPP root are several subdirectories which represent websites I'm building.

So I can access them via: http://xamproot/www.website.com

Now when I incorporate a link to a homepage of one of these sites I link to index.php (obviously). But due to a new approach I need to have links to the homepage of that specific site as '/' (link to root). But this obviously links to the XAMP root (http://xamproot).

My question is: is there a way to create a specific document root for these sites (effectively linking '/' to 'http://xamproot/www.website.com')? I need to do this on a per-site basis. Can somebody help me with this? (or tell me this is impossible maybe???). Thanks in advance!

I've installed XAMPP on a server (windows 2000) which is in an internal network.
tvgemert
 
Posts: 1
Joined: 10. July 2007 15:13
Location: Eindhoven, The Netherlands

Postby Wiedmann » 10. July 2007 16:55

is there a way to create a specific document root for these sites (effectively linking '/' to 'http://xamproot/www.website.com')?

Sure: You are looking for Virtual Hosts.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests