Make sure your hostname is setup correctly. Most of the trailing slash
problems are due to incorrect fqdn, hostname etc.
>>> [EMAIL PROTECTED] 08/27/04 12:36 PM >>>
In my /etc/apache/httpd.conf file, there are comments about this very
thing:
#
# Aliases: Add here as many aliases as you need (with no limit). The
format
is
# Alias fakename realname
#
<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/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
I just ran a test by changing
Alias /icons/ "/var/www/icons/"
to
Alias /icons "/var/www/icons"
and it worked for me, using Apache 1.3.31.
Mark Post
-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of
Steven
C Peckham
Sent: Monday, August 23, 2004 6:07 PM
To: [EMAIL PROTECTED]
Subject: Apache setup question
Hi,
I have been asked to set up a web server for a Linux partition S390
(9672-R26). I'm a newbie to Linux (and networking). I got Linux (2.4.17)
up
(Debian GNU/Linux 3.0rev2) and am serving web pages with apache
(1.3.26),
but I've a irritation that I can not seem to figure out. I want the user
to
be able to come in with
tcpipName-or-address/test1
Please note the lack of / at the end (it works fine if the final / is
added). Is there any way to do this, and if so how?
In httpd.conf I've got
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm default.htm
</IfModule>
Alias /test1 /usr/mywebtest/
<Directory /usr/mywebtest/>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
The first page is in /usr/mywebtest/default.htm
I've tried an alias pointing directly to that (Alias /test1
/usr/mywebtest/default.htm ), but that seemed to make the base directory
for
all other pages, images, ... the root directory (not /usr/mywebtest
like I
wanted it to be).
Thanks,
Steven.
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email
to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390