The answer Forbidden means that you are accessing yes Apache, but the page is not authorized, I mean this is not a problem with the port, it is just a permissions problem.
Wampserver
You’re probably using Wampserver, if this is the case just click on the option Put online (or Put online if in English) like this:
Others other than Wampserver
If you are using another server type that uses Apache you must edit httpd.conf
It must be something like (use the Ctrl+F to look for something similar):
<Directory "d:/wamp/www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
In this case blocks everyone and releases only the last 3, then just add what will release, in case the ip is 192.168.123.22
(if it is fixed), then it would be something like:
<Directory "c:/wamp/www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
Allow from 192.168.123.22 #Ip da sua maquina
</Directory>
And then I restarted Apache, restart the computer (sometimes just do logoff on Windows)
Or remove everything (make a backup of httpd.conf
first, before editing anything)
And then I rebooted Apache.
You said it only occurs with port 80, this is because the settings may be on VirtualHost
:
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/wamp/www
<Directory "c:/wamp/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
The Require local
may be the reason for the lock as well (remember before removing anything take a backup).
Documentation: https://httpd.apache.org/docs/2.4/howto/access.html
Close Skype...
– Diego Souza
@Gumball , if there is another application on this port it will not work on any machine ?
– Fábio Santos
You’re using is Wamp right?
– Guilherme Nascimento
@Gumball if your skype is on port 80(default), no need to close, just set a different port manually in skype settings. :)
– Florida
@I know Florida... but he was supposed to deduce that.
– Diego Souza