-1

I have a WAMP server on my local desktop on my office work computer, and I can access everything on it from itself with no problems. However, if I connect it to the office wifi and try to access it on a mobile phone, I get this in the apache log:

client denied by server configuration

The browser shows "Forbidden you don't have permission to access / on this server".

I get both of the errors above no matter what file or folder I try to access.

It's using apache 2.4.37.

My hosts file contains this:

127.0.0.1 test_folder

httpd-vhosts.conf:

<VirtualHost *:80>
    ServerName test_folder

    DocumentRoot C:\wamp64\www\test_folder
    <Directory c:\wamp64\www\test_folder>
        #Allow from all
        DirectoryIndex index.php



        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

and the httpd.conf contains:

#replace this with the wifi IP  
Listen 192.168.215.197:80

There was an .htaccess file in the test_folder folder, but I removed it and restarted to eliminate that as a potential block.

I can't figure out why apache is blocking access over wifi.

closed as off-topic by Michael Hampton May 13 at 16:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

  • This question IS regarding a computer in a business environment, not at home. I'll change the question, but I don't understand why you assumed that it was for a home computer. – raphael75 May 13 at 16:43
  • The close reason doesn't only mean home setup, it also means situations that are not reasonable business practices, e.g. a WAMP server on a personal computer. – Ward May 14 at 3:28
  • It's my work laptop. All the programmers here use git to download local copies of everything and work locally, then sync back up to the main server. This is a common practice. – raphael75 May 14 at 11:20