Configuring xampp server on an office computer

I need to configure the server using xampp in a small office. Of course, I will protect xampp, but in order to make my webapp available to other 4 PCs on the network, I just create a virtual host? Is there a way to ensure that access to webapp is only available on the LAN?

The current setup includes 4 PCs that use an Internet connection through a router. How can I configure this as a lan that I can provide to access my webapp?

+4
source share
2 answers

Use the .htaccess file or configure permissions in the VirtualHost tags in httpd.conf. All you have to do is put this in a file called .htaccess inside the folder with your web pages:

 order deny,allow deny from all allow from <ip you want> allow from <ip you want> allow from <ip you want> etc... 
+4
source

Perhaps you can try.

open and make sure C: /xampp/apache/conf/httpd.conf

 DocumentRoot "C:/xampp/htdocs" Options Indexes FollowSymLinks AllowOverride all Order Deny,Allow Allow from all 

and open the file C: /xampp/apache/conf/extra/httpd-vhost.conf.

 NameVirtualHost name_site:80 <VirtualHost name_site:80> DocumentRoot C:/xampp/htdocs/folder_site/ ServerAdmin root@gmail.com ServerName xxx.xxx.xxx.xxx </VirtualHost> 

note: xxx.xxx.xxx.xxx is xampp computer ip. This work on the victory 7.

If still not working. Try disabling the Windows firewall.

+2
source

Source: https://habr.com/ru/post/1338771/


All Articles