Link to home
Start Free TrialLog in
Avatar of Johny_Brav0
Johny_Brav0

asked on

XAMPP httpd.conf 127.0.0.1 but no localhost

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
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Johny_Brav0
Johny_Brav0

ASKER

That is the answer - thank you.