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 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

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 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.