l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2002 Jul 09 23:41

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] easy httpd.conf question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] easy httpd.conf question



When you request a directory from the web server, the "normal" thing (what
I see most often) that some web servers do is report [301 Moved
Permanently] then redirect the client. I would bet some clients may
intercept such a 301 error without telling the user and then try
adding a "/" on their own if there is not redirection from the
server. (Just a guess.)

I have plenty of log files showing that users visiting my site get 301
errors when accessing a directory without the trailing "/" with a
"new" request for the same directory with the slash frot he client
immediately following. (Most are from other people's sites who cant code
URLs to dirs with trailing "/". :-/

A 404 error seems less than desireable. I have seen this come up when
people sometimes use the "alias" directives in httpd.conf "directory"
containers and also when trying to use symlinks at the filesystem level in
the published web space. Are you using an alias or symlink for this served
directory that has problems?

If no to both above, then check some modules...

If you dont have the moduel enabled, your best bet is probably
"mod_dir" inclusion.

Another possible one that *may* work (probably best to use mod_dir) is
mod_speling (note spelling of module) deals with odd case and characters
being off by one or missed rather well. It may include trailing "/" you
can check...

Hope something here helps...

-ME

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM$/IT$/LS$/S/O$ !d--(++) !s !a+++(-----) C++$(++++) U++++$(+$) P+$>+++ 
L+++$(++) E W+++$(+) N+ o K w+$>++>+++ O-@ M+$ V-$>- !PS !PE Y+ !PGP
t@-(++) 5+@ X@ R- tv- b++ DI+++ D+ G--@ e+>++>++++ h(++)>+ r*>? z?
------END GEEK CODE BLOCK------
decode: http://www.ebb.org/ungeek/ about: http://www.geekcode.com/geek.html

On Tue, 9 Jul 2002, David Margolis wrote:
> hello, i need to know where to specify in httpd.conf
> that http://www.somedomain.net/directory
> should be read teh same way as http://www.somedomain.net/directory/
> 
> bascially what's happening is when the former is called, the server looks
> for a root level file called directory, finds no such file, and reports a
> lovely 404 error.  when i type the remaining front slash, apache says oh
> that directory and displays index.php (.htm, or whatever) as expected.
> 
> i remember fixing this before was easy, but i really don't remember ...
> is this behavior controlled by a module, or simply a directive?
> 
> thanks,
> dave
> 
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
> 


_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.