Page 1 of 1

Win Server + XAMPP multisite problem

PostPosted: 29. March 2016 14:24
by popov593
First of all thank you for the awesome support forum you run!

Here is my problem:

My OS is Windows Server 2012 and I have installed XAMPP there.

http://localhost (on port 80) opens the Windows Server.
http://localhost:8080 opens D:\xampp\htdocs\

So I want to run multiple sites on Windows Server, and multiple sites on XAMPP (Apache).

I run a Wordpress site, which physical path is D:\xampp\htdocs\brb and so the site opens in http://localhost:8080/brb
I also have a domain brb.com, but when I set the domain settings to respond to my IP, brb.com opens http://localhost (Windows Server).

What I am trying to do is to set brb.com to open my Apache hosted http://localhost:8080/brb .

I've alredy configurated httpd-vhosts.conf with the following settings:

Code: Select all
NameVirtualHosts *:8080

<VirtualHost *:8080>
DocumentRoot "D:\XAMPP\htdocs"
ServerName localhost
</VirtualHost>

<VirtualHost *:8080>
 DocumentRoot "D:\XAMPP\htdocs\brb"
 ServerName brb.com
 <Directory "D:\XAMPP\htdocs\brb">
Options Indexes FollowSymLinks Includes ExecCGI
Order allow,deny
 Allow from all
</Directory>
</VirtualHost>


Any help will be highly appreciated!

Re: Win Server + XAMPP multisite problem

PostPosted: 29. March 2016 21:23
by gsmith
I bet http://brb.com:8080 works.

Remember the default http port is 80 and unless you tell a browser otherwise, that is what it is going to contact the server on.