Localhost wird localhost.com

Fr., 06/04/2012 - 16:09
Body

Localhost wird localhost.com Problem 1

Ist mir mal bei Drupal 6 passiert. Folgendes hat geholfen. Problem: localhost wird zu www.localhost.com Problem ist die aktivierte Option "Aggregate and compress CSS files".

Lösung

In der datenbank in der Tabelle variables den Wert der variablen preprocess_css von s:1:"1"; auf s:1:"0"; ändern und in der Datenbank dann noch alle Tabellen deren Name mit cache beginnen leeren. Das kann man auch über "Flush cache" machen, admin Menu oder in den Drupal Core Optionen.

Localhost wird localhost.com Problem 2

In Firefox gibt man localhost ein und landen auf www.localhost.com. Das ganze passiert irgendwie wegen Firefox und Windows Vistas IPv6 support.

Lösung

Den IPv6 Eintrag in der windows host file entfernen:
  1. Notepad oder sonstigen Texteditor als Administrator ausführen und folgende Datei öffnen. C:\Windows\System32\drivers\etc\hosts
  2. Entferne ::1 localhost
  3. Speichern
  4. Dos Konsole öffnen
  5. Kommando ausführen: ipconfig /flushdns
Was genau ist "::1 localhost" in IPv6? Das ist das gleiche wie 127.0.0.1 bei IPv4

Weitere Quellen

http://www.drupalcenter.de/node/22481 http://yacoding.blogspot.de/2008/07/localhost-redirecting-to.html http://www.wilderssecurity.com/archive/index.php/t-198020.html http://en.wikipedia.org/wiki/Localhost
Drupal
Add new comment
The content of this field is kept private and will not be shown publicly.

Plain text

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <drupal-entity data-*>
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.