Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

XAMPP httpd.conf 127.0.0.1 but no localhost

Posted on 2012-03-17
2
Medium Priority
?
956 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 84

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

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

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

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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 learn how to look for a specific file type in a local or remote server directory using PHP.

604 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