Solved

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

Posted on 2008-06-13
4
1,262 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
ID: 21783693
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
ID: 21784294
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
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:

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
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!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
wordpress email form 23 78
Redirect and Rewrite URL using .htaccess 38 121
UPLOAD FILE TO Web API USING POST 5 113
performance tune IIS 10 on win 2016 that only runs one website 4 58
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

808 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