One project accessible the other not
Posted by: kman (---.range86-167.btcentralplus.com)
Date: February 23, 2018 08:41PM

Hi guys using the latest wamp and as far as I can see I've it set 43p correctly. One project is a called news the other as. They are in individual sub folders in the www folder.

I can access both from the pc there hosted on but only have access to mews via another pc on my lan.

When I try to access as, I get a this site can not be reached error.
Here is my vhosts file.

  
#
<VirtualHost *:8090>
	ServerName localhost
	DocumentRoot "c:/wamp64/www"
	<Directory  "c:/wamp64/www/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
             Require ip 192.168.1
</Directory>
</VirtualHost>


<VirtualHost *:8090>
	ServerName abserv
	DocumentRoot "c:/wamp64/www/as"
	<Directory  "c:/wamp64/www/as/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local 
             Require  ip 192.168.1
	</Directory>
</VirtualHost>


<VirtualHost *:8090>
	ServerName mews
	DocumentRoot "c:/wamp64/www/mewsrecordings"
	<Directory  "c:/wamp64/www/mewsrecordings/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
             Require ip 192.168.1
	</Directory>
</VirtualHost>

Thanks

Keith

Options: ReplyQuote
Re: One project accessible the other not
Posted by: Otomatic (Moderator)
Date: February 24, 2018 10:33AM

Hi,

> <VirtualHost *:8090>
Why port 8090 ?

> When I try to access as,
How do you access this local site from another PC?
What do you type in the address bar of the browser?

> I can see I've it set 43p correctly
What is 43p ?

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

Options: ReplyQuote
Re: One project accessible the other not
Posted by: kman (---.range86-167.btcentralplus.com)
Date: February 24, 2018 12:37PM

Hi thanks for the reply

I'm using 8090 as 80 is being used by something else.

I type
http://192.168.1.113:8090/mewsrecordings/ 
it works
If I type
http://192.168.1.113:8090/as/
for the next project it can't be reached

43p Was ment to say set it up correctly sorry

Thanks



Edited 1 time(s). Last edit at 02/24/2018 12:54PM by kman.

Options: ReplyQuote
Re: One project accessible the other not
Posted by: Otomatic (Moderator)
Date: February 24, 2018 04:39PM

Hi,

> If I type [192.168.1.113] for the next project it can't be reached
"as" is not the domain name!
Look at what you have as ServerName for the DocumentRoot "as"!

It seems to work for "mewsrecordings", but the problem is the same, it's not ServerName.
Read : The need for Virtual Host

> I'm using 8090 as 80 is being used by something else.
I wonder what it's for when there are tools built into Wampserver!
What is the results of :
- 1 - Right-Click wampmanager tray icon -> Tools -> Test port 80
- 2 - Right-Click wampmanager tray icon -> Tools -> Test port used: 8090

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.