Hello
I have 3 computer network and I installed apache on the server and working properly (http://localhost). but when I try to reach another computer in the network using http://localhost or http://127.0.0.1 or ip address of server, I receive
"Forbidden
You don't have permission to access / on this server.
apache/1.3.22 Server at hawking.tesam.com.tr Port 80"
message How can I access to this server
Thanks for your reply
H

The hostname "localhost" is actually an alias which always refers to the local computer (local host). No matter where you access localhost, you'll be accessing the curent machine you're using at the time. 127.0.0.1 is the IP alias for localhost - they all mean the same thing.

What you will need to access your machine from elsewhere is an external IP (preferably static) that was assigned either by your router (to access your computer from other sites within your network) or by your ISP.

Dear Admin
In fact I just found the solution. in httdf.con file I ve changed the access type from "allow from localhost 127.0.0.1" to "allow from all" so when I change this access type I can reach the web page in intranet using server's ip address.
P.S;I know that changing this access type is dangereous for security but Im using apache in intranet
Thanks for your reply
Best
Hakan

The hostname "localhost" is actually an alias which always refers to the local computer (local host). No matter where you access localhost, you'll be accessing the curent machine you're using at the time. 127.0.0.1 is the IP alias for localhost - they all mean the same thing.

What you will need to access your machine from elsewhere is an external IP (preferably static) that was assigned either by your router (to access your computer from other sites within your network) or by your ISP.

I have a problem similar to this. My website (development stage) depends on http://localhost. Now I'm beginning to use Zend Server, which forces the server to use http://localhost:10083. How can I use this new combination without changing all my code? Something in the way of an alias?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.