Windows 10 localhost redirect altijd naar::1

Pagina: 1
Acties:

Vraag


Acties:
  • 0 Henk 'm!

  • REDSD
  • Registratie: Maart 2004
  • Laatst online: 04-10 17:23
Hey, ik heb sinds ik windows 10 geïnstalleerd heb het probleem dat localhost altijd verwijst naar ::1
Het hosts bestand staat op 127.0.0.1 localhost, alle redirects die er verder in staan werken ook, behalve localhost zelf, deze blijft altijd verwijzen naar ::1

Hebben jullie een idee hoe ik hem als nog kan redirecten naar 127.0.0.1?

Beste antwoord (via REDSD op 16-06-2016 18:15)


  • Raven
  • Registratie: November 2004
  • Niet online

Raven

Marion Raven fan

Kijk eens naar https://stackoverflow.com...dden-message-on-windows-7 , die gaat weliswaar over W7, maar ik vermoed dat je in dezelfde richting en configfiles moet zoeken.

After the first glass you see things as you wish they were. After the second you see things as they are not. Finally you see things as they really are, and that is the most horrible thing in the world...

Oscar Wilde

Alle reacties


Acties:
  • 0 Henk 'm!

  • SpamLame
  • Registratie: Augustus 2000
  • Laatst online: 04-10 08:41

SpamLame

niks

::1 is het IPv6 adres voor localhost. Wikipedia: localhost
https://support.microsoft.com/nl-nl/kb/929852 voor als je wijzigingen wilt aanbrengen hoe windows omgaat met ipv4/6, mogelijk dat dit je "probleem" oplost.

[ Voor 41% gewijzigd door SpamLame op 16-06-2016 09:29 ]


Acties:
  • 0 Henk 'm!

  • REDSD
  • Registratie: Maart 2004
  • Laatst online: 04-10 17:23
Ah ik zie het, ik dacht dat de locahost redirecten naar 127.0.0.1 altijd naar dat ip adres zou verwijzen, maar ik zie nu dat op mijn andere windows 10 machine de localhost ook naar ::1 verwijst terwijl er in het host bestand 127.0.01 localhost staat.

De reden waarom ik dit als een probleem zag is omdat mijn WAMP server een 403 geeft als ik localhost aanroep, terwijl 127.0.0.1 wel een website terug geeft.

Ik zal eens uizoeken waarom de ene server geen probleem heeft met win 10 terwijl de andere 403's blijft gooien sinds het omzetten.

Acties:
  • Beste antwoord
  • 0 Henk 'm!

  • Raven
  • Registratie: November 2004
  • Niet online

Raven

Marion Raven fan

Kijk eens naar https://stackoverflow.com...dden-message-on-windows-7 , die gaat weliswaar over W7, maar ik vermoed dat je in dezelfde richting en configfiles moet zoeken.

After the first glass you see things as you wish they were. After the second you see things as they are not. Finally you see things as they really are, and that is the most horrible thing in the world...

Oscar Wilde


Acties:
  • 0 Henk 'm!

  • REDSD
  • Registratie: Maart 2004
  • Laatst online: 04-10 17:23
Ja die had ik al geprobeerd maar dat zorgt er juist voor dat ik geen toegang meer heb als ik apache 2.4.9 draai.

AllowOverride All
Order allow,deny
Allow from all


Ik heb op mijn laptop de zelfde config draaien, daar werkt dit wel op de laptop, maar niet op de desktop:

<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory "c:/wamp/www">
Options Indexes FollowSymLinks
AllowOverride all
Require local
</Directory>



Ik heb het gevoel dat het probleem ergens anders zit, op windows 7 had ik met chrome een zelfde probleem, maar toen hadden firefox, IE en Safari er geen last van, nu is het probleem op alle browsers

[ Voor 4% gewijzigd door REDSD op 16-06-2016 11:02 ]


Acties:
  • 0 Henk 'm!

  • Raven
  • Registratie: November 2004
  • Niet online

Raven

Marion Raven fan

Hmm, en als je de Windows firewall tijdelijk uitzet?

After the first glass you see things as you wish they were. After the second you see things as they are not. Finally you see things as they really are, and that is the most horrible thing in the world...

Oscar Wilde


Acties:
  • 0 Henk 'm!

  • REDSD
  • Registratie: Maart 2004
  • Laatst online: 04-10 17:23
De firewall heeft niet geholpen, maar ik heb het probleem wel gevonden uiteindelijk...

In een extern vhost bestandje stond het volgende wat ook ingeladen werd:
<Directory "C:\wamp\www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
In windows 7 was het nog bij mij 127.0.0.1, maar in windows 10 is dat nu dus ::1
Dit stukje er uithalen zorgde er voor dat het weer werkte

Bedankt voor het mee denken!

[ Voor 6% gewijzigd door REDSD op 16-06-2016 18:16 ]

Pagina: 1