XAMPP Apache server not working on internal network

I have XAMPP installed on my local laptop (Vista) and it works great. Apache and MySQL work as services, and I can get to http: // localhost / and http://192.168.2.2/ without any problems.

However, if I try to access the server from another laptop on my internal network by entering http://192.168.2.2/ ip address, it errors. What am I missing here?

When I run port inspection, I get the following:

Service              Port   Status
==============================================================================
Apache (HTTP)          80   Program: C:\xampp\xampp\apache\bin\httpd.exe
Apache (WebDAV)        81   free
Apache (HTTPS)        443   Program: C:\xampp\xampp\apache\bin\httpd.exe

MySQL                3306   Program: C:\Program Files\MySQL\MySQL Server 5.1\bin
\mysqld.exe

and when I try to connect to localhost port 80, this works too. My httpd-vhosts.conf file contains the following lines:

<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:/xampp/xampp/htdocs/"
</VirtualHost>

<VirtualHost 192.168.2.2>
ServerName localhost
DocumentRoot "C:/xampp/xampp/htdocs/"
</VirtualHost>

Any thoughts?

+3
source share
1

ServerFault.com

, Windows 80. , Windows, " ", "", " ". "" "- (TCP 80)", " 80" " TCP", .

+2

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


All Articles