Toon posts:

index.php

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb apache webserver, en php geinstalleerd op mijn windows 2000 bak. Het meeste werkt wel. maar hij pakt mijn index.php niet.
Nu heb ik dit in mijn config gezet:

<IfModule mod_dir.c>
DirectoryIndex index.htm index.html index.php
</IfModule>

als ik dit doe:
http://127.0.0.1/phpBB
dan doet ie het niet
als ik dit doe 127.0.0.1/phpBB/
dan doet ie het wel. Ik moet dus altijd perse die extra / er achter zetten.
Weet iemand hoe je dit kunt verhelpen

Verwijderd

Welke php heb je geinstalleerd? Er is namelijk een versie voor alleen iis, en de grotere versie, die voor allen geldt. Verder heb ik geen ervaring met apache, ik draai php gewoon een beetje op mijn iis...

Verwijderd

Topicstarter
Ja, ze willen hier apache webserver. ALs het aan mij lag, dan had ik Linux geinstallerd, maar ze zijn hier bang voor vernieuwingen :)

Thuis op mijn linux bak doet ie het wel. maar ik moet hier die extra / intikken. sommige php scripts werken daarom niet.

  • EsCo
  • Registratie: Februari 2001
  • Laatst online: 06-05 20:10
Dat ligt aan de alias die je hebt ingesteld, daar moet je ook zonder slash de alias opgeven.

de Internet Jongens BV - Noeste webwerkers


Verwijderd

Topicstarter
hmm, ik heb niet zitten prutsen met alias, maar dit staat in m'n conf:

mist er iets?

<IfModule mod_alias.c>

#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL. So "/icons" isn't aliased in this
# example, only "/icons/". If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
Alias /icons/ "C:/Program Files/Apache Group/Apache/icons"


<Directory "C:/Program Files/Apache Group/Apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin"

#
# "C:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files/Apache Group/Apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

</IfModule>
# End of aliases.

Verwijderd

Topicstarter
of moet ik ergens anders een / wegslopen ?

  • EsCo
  • Registratie: Februari 2001
  • Laatst online: 06-05 20:10
Heb je niet ergens de alias van phpBB ingesteld? of heb je daarvoor gewoon een dir aangemaakt in httpd (zoiets).
Zet anders even een link naar je complete http.conf...
Het ligt zeker aan de alias als hij het met slash wel doet...

de Internet Jongens BV - Noeste webwerkers


  • twixx
  • Registratie: April 2000
  • Niet online
Nou zeg! Wat zie ik nu dan in de FAQ van apache staan "Why does accessing directories only work when I include the trailing "/"?". Ze zullen het er wel net bij gezet hebben dat iemand dit topic opende.

leesvoer

9x Canadian Solar + Enphase IQ7+ 3,4 kWp ZZW 20º
4x Yingli + Enphase IQ7 1 kWp ZZW 25º
4x Yingli + Enphase IQ7 1 kWp ZZW 90º


Verwijderd

Topicstarter
yo tanks. de oplossing stond idd in de faq. Ik had de servernaam niet goed staan. Hij doet het nu wel.
Pagina: 1