?
Solved

XAMPP httpd.conf 127.0.0.1 but no localhost

Posted on 2012-03-17
2
Medium Priority
?
939 Views
Last Modified: 2012-03-17
In httpd.conf I add this:
<Directory />
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from localhost 127.0.0.1
</Directory>

So dropbox can sync htdocs.

Problem is I have to use 127.0.0.1 in the browser to view my websites i.e. I cannot use localhost. Maybe not resolving machine readable address or can I add this human readable address to the httpd.conf file - what is the syntax please?

Tried this but no luck:
<Directory />
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Deny from all
      Allow from localhost 127.0.0.1
</Directory>

Cheers
0
Comment
Question by:Johny_Brav0
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 2000 total points
ID: 37733232
Look in your 'hosts' file.  See if it has "127.0.0.1  localhost " as one of the lines.  Normally that would be true.  If you're on Win7, it might "::1 localhost" instead which is the IPV6 version.
0
 

Author Comment

by:Johny_Brav0
ID: 37733688
That is the answer - thank you.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses

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