Multiple Virtual Hosts but different directories

Alles, was den Apache betrifft, kann hier besprochen werden.

Multiple Virtual Hosts but different directories

Postby pxthex400 » 29. June 2016 18:47

Hey guys.

I was wondering how I would go about doing different virtual hosts but with the first one being localhost just in the normal xampp htdocs directory and another being kept on my external hard drive? Also I'm currently using Xampp v.3.2.1 and the normal httpd.conf file doesn't appear to have a section for virtual hosts in it, I don't know why it just doesn't so could someone tell me where I could set these up with obviously first pointing to the C drive and the other my external which is currently E drive.

Thanks
pxthex400
 
Posts: 1
Joined: 29. June 2016 18:43
XAMPP version: 3.2.1
Operating System: Windows 10

Re: Multiple Virtual Hosts but different directories

Postby Altrea » 29. June 2016 23:45

Hi,

pxthex400 wrote:Also I'm currently using Xampp v.3.2.1

No, you are not. Please read the following thread zo know where you find the correct version number of your XAMPP version:
[Q&A] Insufficient debug information - base information

pxthex400 wrote:and the normal httpd.conf file doesn't appear to have a section for virtual hosts in it

The virtual host definitions are outsourced at \apache\conf\extra\httpd-vhosts.conf

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11933
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to Apache

Who is online

Users browsing this forum: No registered users and 41 guests