Toon posts:

[BC3] php

Pagina: 1
Acties:

Verwijderd

Topicstarter
als ik mijn apache+php server benader op een windows machine met IE 5, en type:

http://infocenter dan kom ik niet op mijn home page
maar als ik:
http://infocenter/ typ dan gaat ie wel naar de homepage dit is een lastig probleem want ik kan geen goede website bouwen zo.

Verwijderd

heb je in je config-file wel je servername ingesteld?
Ik had daar ook last van en volgens mij was dat de oplossing.

Verwijderd

Topicstarter
Ok dit werkt maar als nu bv de dir admin aanmaak moet ik weer deze / plaatsen en daar gaat nou juist om

  • Logic
  • Registratie: Juni 2000
  • Laatst online: 18-08 22:01

Logic

SmartOS:Love at First Boot

code:
1
2
ServerName www.mindtravel.nl
      ServerAlias mindtravel.nl www.mindtravel.nl

Heb je ook de alias ingevuld?
offtopic:
Topic naam klopt niet helemaal.
Dit probleem ligt bij apache en niet php >:)

If it bleeds, it can be killed!


Verwijderd

ff rondgekeken op FAQ van www.apache.org
Why does accessing directories only work when I include the trailing "/" (e.g., http://foo.domain.com/~user/) but not when I omit it (e.g., http://foo.domain.com/~user)?

When you access a directory without a trailing "/", Apache needs to send what is called a redirect to the client to tell it to add the trailing slash. If it did not do so, relative URLs would not work properly. When it sends the redirect, it needs to know the name of the server so that it can include it in the redirect. There are two ways for Apache to find this out; either it can guess, or you can tell it. If your DNS is configured correctly, it can normally guess without any problems. If it is not, however, then you need to tell it.

Add a ServerName directive to the config file to tell it what the domain name of the server is.