Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: http://localhost works, but http://192.168.0.5 doesn't |
|
Author |
|
ahlandberg
Joined: 28 Sep 2010 Posts: 1
|
Posted: Tue 28 Sep '10 16:51 Post subject: http://localhost works, but http://192.168.0.5 doesn't |
|
|
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
|
Posted: Wed 29 Sep '10 0:28 Post subject: |
|
|
Listen 127.0.0.1:80
Listen 192.168.0.5:80 |
|
Back to top |
|
molitar
Joined: 28 Jan 2011 Posts: 4
|
Posted: Fri 28 Jan '11 22:34 Post subject: |
|
|
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 |
|
|
|
|
|
|