httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Cohen" <apa...@gej-it.com>
Subject RE: [users@httpd] I am confused
Date Sat, 11 Jan 2003 20:06:29 GMT
Hi Emil,

Guess you have to use mod_rewrite to do so. The server doesn't know which
file you are asking it to serve unless you specify the extension, eg. If you
go to dos prompt and try running *filename* and at the same folder you have
x.bat and x.com, will the computer know which file you meant to load??
Think about it..
You'll need to use mod_rewrite and redirect www.domain1.com/file >
www.domain1.com/file.extension . Otherwise you'll need to do as follows:
Add another DirectoryIndex to the folder that will point to the default page
you want to load. You can do so within the httpd.conf file or in an
.htaccess file. The line to do so will be DirectoryIndex demo.shtml
index.php and etc.

All the best,
Jeff Cohen

> -----Original Message-----
> From: Emil [mailto:ebohatch@eibassoc.com]
> Sent: Saturday, January 11, 2003 7:56 AM
> To: Joshua Slive; users@httpd.apache.org
> Subject: Re: [users@httpd] I am confused
> 
> Joshua,
> I checked and it was on in my virtual hosts. I set it on in the root but
> no
> difference.
> I still get a page not found 404 error, but if I give it the suffix
> demo.shtml it works fine???
> 
> Am I possibly missing an included module in the downloaded binary of
> Apache
> 2.0.43
> 
> Thanks,
> Emil
> 
> ----- Original Message -----
> From: "Joshua Slive" <joshua@slive.ca>
> To: <users@httpd.apache.org>; "Emil" <ebohatch@eibassoc.com>
> Sent: Friday, January 10, 2003 9:30 PM
> Subject: Re: [users@httpd] I am confused
> 
> 
> >
> > On Fri, 10 Jan 2003, Emil wrote:
> > > But when I try to call a page using http://website/demo
> > > <http://website/demo>  it will not find it unless I specifically call
> > > for http://website/demo.shtml <http://website/demo.shtml> .
> > >
> > > On the original system this functions fine.
> >
> > Add "MultiViews" to the Options directive fore the DocumentRoot
> directory.
> >
> > Joshua.
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message