logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: http://localhost works, but http://192.168.0.5 doesn't
Author
ahlandberg



Joined: 28 Sep 2010
Posts: 1

PostPosted: Tue 28 Sep '10 16:51    Post subject: http://localhost works, but http://192.168.0.5 doesn't Reply with quote

Hello All,

I am new to Apache web server setup and am encountering a problem when accessing the server using the host machine's IP address.

When I enter http://localhost or http://127.0.0.1 into the URL of the browser, I can access my document root. However, when I try to access it using the host machine's IP address, it times out.

I have set up port forwarding on my router that will forward port 80 to 192.168.0.5.

My httpd.conf file looks as follows for my document root:

<Directory "D:/localhost">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

I am using the "Allow from all" setting, so I don't understand why URL requests from the local IP don't resolve.

Thank you for your help.

Anders
Back to top
Kanashii



Joined: 17 Jul 2006
Posts: 155
Location: Porando

PostPosted: Wed 29 Sep '10 0:28    Post subject: Reply with quote

Listen 127.0.0.1:80
Listen 192.168.0.5:80
Back to top
molitar



Joined: 28 Jan 2011
Posts: 4

PostPosted: Fri 28 Jan '11 22:34    Post subject: Reply with quote

Ok I had this exact same problem. Check out the .htaccess file in the root directory mine was set to Deny from all allow from 127.0.0.1 which means only localhost has access. Took me 2 days to figure why this was happening.
Back to top


Reply to topic   Topic: http://localhost works, but http://192.168.0.5 doesn't View previous topic :: View next topic
Post new topic   Forum Index -> Apache