Solved

XAMPP httpd.conf 127.0.0.1 but no localhost

Posted on 2012-03-17
2
900 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
2 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
That is the answer - thank you.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

10 Experts available now in Live!

Get 1:1 Help Now