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

Posted on 2008-06-13
Medium Priority
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

When I try to use the IP ( 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
Question by:R2-D2
  • 2
LVL 57

Accepted Solution

giltjr earned 1200 total points
ID: 21783693
Did you setup any virtual hosts?  Do you have any deny/allow statements?
LVL 43

Assisted Solution

ravenpl earned 800 total points
ID: 21784294
Definitely there must be following statement somewhere in the httpd.conf of .htaccess
Allow from localhost
Deny from all

Author Comment

ID: 21791596
I did not set up any virtual hosts. I have tried setting up my virtual host like this but it did not work:


   DocumentRoot "C:\wamp\www\mysite"
   ServerName servername.local

I have also tried:


   DocumentRoot "C:\wamp\www\mysite"
   ServerName servername.local

My httpd.conf is as follow:

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

I still get the message:

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

Can you see anything that I have not configured correctly?


Author Comment

ID: 21791837
I have found the problem. It was like you suggested. I found the problem in the Apache deny/allow statements.

Thanks for your help!

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
The video provides a quick and easy steps to migrate MBOX file to well known Outlook PST and Office 365. Besides this, it also supports and migrates more than 20 email clients of MBOX which include AppleMail, Opera, Thunderbird and SeaMonkey effortl…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …
Suggested Courses

624 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