Solved

Can not access intranet site with IP address or hostname. Local host works fine (Apache)

Posted on 2008-06-13
4
1,258 Views
Last Modified: 2012-06-22
I have installed WAMP on Windows 2003. Every thing seems to be working fine except for one thing. I can access my website with the url http://localhost/Mysite and http://127.0.0.1/mysite

When I try to use the IP (http://198.162.1.55/mysite or hostname (http://hostname/mysite) I get an error that says:

You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.

I can also not access the website from any other computers on my domain but I guess that is related to the same problem that I can not use the IP or hostname.

Is there configuration that needs to be done to Apache so that I can use the Ip and host name or is this a network configuration issue? I have disabled my firewall but I have the same problem.

Thank you
0
Comment
Question by:R2-D2
  • 2
4 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 300 total points
Comment Utility
Did you setup any virtual hosts?  Do you have any deny/allow statements?
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 200 total points
Comment Utility
Definitely there must be following statement somewhere in the httpd.conf of .htaccess
Allow from localhost
Deny from all
0
 

Author Comment

by:R2-D2
Comment Utility
I did not set up any virtual hosts. I have tried setting up my virtual host like this but it did not work:

NameVirtualHost 127.0.0.1

<VirtualHost 127.0.0.1>
   DocumentRoot "C:\wamp\www\mysite"
   ServerName servername.local
</VirtualHost>

I have also tried:

NameVirtualHost 192.168.1.5

<VirtualHost 192.168.1.5>
   DocumentRoot "C:\wamp\www\mysite"
   ServerName servername.local
</VirtualHost>

My httpd.conf is as follow:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

I still get the message:

 Forbidden
You don't have permission to access / on this server.

Can you see anything that I have not configured correctly?

0
 

Author Comment

by:R2-D2
Comment Utility
I have found the problem. It was like you suggested. I found the problem in the Apache deny/allow statements.

Thanks for your help!
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now