Toon posts:

Apache en Directories

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ugh Indianen,

Ik heb twee wazige dingen met mijn wigwam (Apache/1.3.19) op win2k:

- Mijn root geeft een "404" error, als ik als webroot een andere directory op geef dan doet hij het wel?
- Ik moet een "/" neer zetten achter de namen van mijn directories anders krijg ik ook een "404".

bv: http://localhost/mapje geeft een "404",
en http://localhost/mapje/ geeft de inhoud van het mapje.

Ik hoop dat mijn probleem formulering duidelijk is.

Verwijderd

sophistry: Mijn root geeft een "404" error, als ik als webroot een andere directory op geef dan doet hij het wel?
Hoe ziet (het relevante gedeelte van) je httpd.conf eruit? Gebruik je een .htaccess bestandje?
Ik moet een "/" neer zetten achter de namen van mijn directories anders krijg ik ook een "404".
Het adres /foo is niet hetzelfde als het adres /foo/ dus dat klopt. (Zie evt je docs voor hoe te veranderen zodat Apache een / achter adressen plakt indien nodig.)

Verwijderd

Topicstarter
Mijn Apache config

ServerAdmin martyn@sophistry.nl

#
# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
ServerName sophistry.pk7b.nl


#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "e:/sophistry/"

#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "e:/sophistry/">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks MultiViews

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None