Only Project Folder Open To LAN
Posted by: cajenh (---.hfc.comcastbusiness.net)
Date: July 19, 2017 08:52PM

Hello this may be a rather dumb qestion but I am new to wasmpserver. I put a project online and made it accessible to users on the LAN but the users are also able to see the wampserver console if they simply go to the servers IP address. Is it possible to only put the projects online or block access to the console.

Options: ReplyQuote
Re: Only Project Folder Open To LAN
Posted by: RiggsFolly (Moderator)
Date: July 20, 2017 12:05AM

Yes [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote
Re: Only Project Folder Open To LAN
Posted by: cajenh (---.hfc.comcastbusiness.net)
Date: July 21, 2017 02:38PM

Thanks I'll read over the documentation now. Is the solution something along the lines of creating virtual hosts of my subnets tied to my specific project folder thats housing the website?

Options: ReplyQuote
Re: Only Project Folder Open To LAN
Posted by: RiggsFolly (Moderator)
Date: July 21, 2017 03:39PM

Yes,

For example, here is a sample httpd-vhosts.conf where localhost is only accessible from the PC running WAMPServer, but the other domain, mysite.dev, is available to any ip on the local network subnet.

If you have a local DNS Server, put mysite.dev in to that, otherwise you may need to get all your users to amend their HOSTS file to add
192.168.1.100 mysite.dev
Where 192.168.1.100 is the ip address of the machine running WAMPServer

#
# Virtual Hosts
#

<VirtualHost *:80>
	ServerName localhost
	DocumentRoot c:/wamp/www
	<Directory  "c:/wamp/www/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>

<VirtualHost *:80>
	ServerName mysite.dev
	DocumentRoot c:/wamp/www/mysite/www
	<Directory  "c:/wamp/www/mysite/www/">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require local
                Require ip 192.168.1
	</Directory>
</VirtualHost>

---------------------------------------------------------------------------------------------
(Windows 7 Pro 32bit) (Wampserver 3.0.6 32bit)
<Apache 2.4.23/2.2.31> <PHP 7.1.2/7.0.16/5.6.28/5.5.38/5.4.45/5.3.29> <MySQL 5.7.10/5.6.17/5.5.28>
<MariaDB 10.1.21> <phpMyAdmin4.6.5.2> <MySQL Workbench 6.3.6.511>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin -- WAMPServer alternate Repo
-?-?-?- Backup your MySQL databases regularly Here is How dont regret it later! Yes even when developing -?-?-?-

Options: ReplyQuote


Sorry, only registered users may post in this forum.