Multisite doesnt work, 1 live + 1 local
Posted by: zeromaster (---.chello.nl)
Date: August 16, 2015 03:33PM

Hey everyone,

I am running a live site with WAMP on my VPN. Now I want to run another wordpress site (local). but WAMP doesnt let me.

Steps I did:
- Made another site folder in www folder.
- Put site details in httpd-vhosts.conf
- Changed the hosts folder from windows to this;

127.0.0.1 localhost
127.0.0.1 127.0.0.1
127.0.0.1 localsite

Anyone an idea why it doesnt work?

Options: ReplyQuote
Re: Multisite doesnt work, 1 live + 1 local
Posted by: Otomatic (Moderator)
Date: August 16, 2015 03:46PM

Hi,

> Anyone an idea why it doesnt work?
Yes. You must use VirtualHost WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Multisite doesnt work, 1 live + 1 local
Posted by: zeromaster (---.chello.nl)
Date: August 16, 2015 03:57PM

I already use VirtualHost. This is my httpd-vhosts.conf file:

<VirtualHost *:80>
ServerAdmin livesite@gmail.com
DocumentRoot "C:/wamp/www/livesite/"
ServerName livesite.nl
ServerAlias www.livesite.nl
ErrorLog "logs/dummy-host1.livesite.nl-error.log"
CustomLog "logs/dummy-host1.livesite.nl-access.log" common
</VirtualHost>

<VirtualHost *:80>
ServerAdmin localsite@gmail.com
DocumentRoot "C:/wamp/www/localsite/"
ServerName localsite.nl
ServerAlias www.localsite.nl
ErrorLog "logs/dummy-host1.localsite.nl-error.log"
CustomLog "logs/dummy-host1.localsite.nl-access.log" common
</VirtualHost>

Options: ReplyQuote
Re: Multisite doesnt work, 1 live + 1 local
Posted by: Otomatic (Moderator)
Date: August 16, 2015 04:31PM

Hi,

> ServerName livesite.nl

- ServerName are not in your windows/system32/drivers/etc/hosts file
- Maybe you also need to define IpV6 support in this file
- localhost is not defined as VirtualHost
- You do not use <Directory>...</Directory> to set the access permissions.

Reread totally and with great attention: WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons



Edited 1 time(s). Last edit at 08/16/2015 04:46PM by Otomatic.

Options: ReplyQuote
Re: Multisite doesnt work, 1 live + 1 local
Posted by: zeromaster (---.chello.nl)
Date: August 16, 2015 06:50PM

Got it working now smiling smiley

Another question; how can i reach my localsite on another computer.
When I type my host IP it goes straight to the live site, so I can't choose for my localsite.

Options: ReplyQuote
Re: Multisite doesnt work, 1 live + 1 local
Posted by: Otomatic (Moderator)
Date: August 16, 2015 07:21PM

Hi,

With the host IP it goes to the Default server ie that you did not defined localhost as defaut server.

It is impossible to do a callback from the same PC ie it is impossible to go to the local site with the ip of the PC.

It is possible with another PC

It should type (http://local_ip_of_host/localsite.nl) and in the VirtualHost localsite.nl you should write:
<Directory C:/wamp/www/localsite/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride all
  Require local
  Require ip ip_of_network_pc
</Directory>

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.