You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Amin Thakkar <am...@infopoint.co.ug> on 2005/03/06 15:09:20 UTC
[users@httpd] DirectoryIndex
Hi
I want to put as home page as below sequance
index.shtml index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm
Index.htm Home.htm Index.php
I have edit httpd.conf in /etc/httpd/conf but it is not working as I want.
Ex I have file call index.cfm in http://infopoint.co.ug/cfmdate/index.cfm
when I type http://infopoint.co.ug/cfmdate it should open home page
Pls tell me what to do
Amin
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex at_domains_index.html index.html index.html.var index.shtml
index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm Index.htm
Home.htm Index.php
---------------------------------------------------------------------
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
Re: [users@httpd] DirectoryIndex
Posted by Gene <li...@Bomgardner.net>.
Amin Thakkar wrote:
> Yes I have check it is working fine if I put index.html in cfmdate.
> try now http://infopoint.co.ug/cfmdate
>
> Amin
Yes - that is indeed working. Try changing DirectoryIndex from:
DirectoryIndex at_domains_index.html index.html index.html.var
index.shtml index.cfm index.htm home.htm index.php --- Index.shtml
Index.cfm Index.htm Home.htm Index.php
to:
DirectoryIndex at_domains_index.html index.html index.html.var
index.shtml index.cfm index.htm home.htm index.php Index.shtml
Index.cfm Index.htm Home.htm Index.php
Note the three dashes have been removed.
Best 'o' luck,
Gene
---------------------------------------------------------------------
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
Re: [users@httpd] DirectoryIndex
Posted by Amin Thakkar <am...@infopoint.co.ug>.
Yes I have check it is working fine if I put index.html in cfmdate. try now
http://infopoint.co.ug/cfmdate
Amin
----- Original Message -----
From: "Gene" <li...@Bomgardner.net>
To: <us...@httpd.apache.org>
Sent: Sunday, March 06, 2005 10:19 PM
Subject: Re: [users@httpd] DirectoryIndex
> Joshua Slive wrote:
>
>>On Sun, 6 Mar 2005 17:09:20 +0300, Amin Thakkar <am...@infopoint.co.ug>
>>wrote:
>>
>>>I have edit httpd.conf in /etc/httpd/conf but it is not working as I
>>>want.
>>>Ex I have file call index.cfm in http://infopoint.co.ug/cfmdate/index.cfm
>>>when I type http://infopoint.co.ug/cfmdate it should open home page
>>>
>>
>>
>>>DirectoryIndex at_domains_index.html index.html index.html.var
>>>index.shtml
>>>index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm
>>>Index.htm
>>>Home.htm Index.php
>>>
>>
>>What is the "---" doing in the middle there?
>>
>>Anyway, the page is currently giving a "forbidden" error, which means
>>some kind of permissions problem. Start by checking your apache error
>>log.
>>
> I'm not sure permissions is the problem (unless it's the cfmdate
> directory) since asking for the specific file ('index.cfm') works. I tend
> to go along with the '---' in the middle of the line theory. A simple
> check - does a file named 'index.html' in the same directory work?
>
> Gene
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01-Mar-2005
>
>
---------------------------------------------------------------------
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
Re: [users@httpd] DirectoryIndex
Posted by Gene <li...@Bomgardner.net>.
Joshua Slive wrote:
>On Sun, 6 Mar 2005 17:09:20 +0300, Amin Thakkar <am...@infopoint.co.ug> wrote:
>
>
>>I have edit httpd.conf in /etc/httpd/conf but it is not working as I want.
>>Ex I have file call index.cfm in http://infopoint.co.ug/cfmdate/index.cfm
>>when I type http://infopoint.co.ug/cfmdate it should open home page
>>
>>
>
>
>
>>DirectoryIndex at_domains_index.html index.html index.html.var index.shtml
>>index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm Index.htm
>>Home.htm Index.php
>>
>>
>
>What is the "---" doing in the middle there?
>
>Anyway, the page is currently giving a "forbidden" error, which means
>some kind of permissions problem. Start by checking your apache error
>log.
>
>
I'm not sure permissions is the problem (unless it's the cfmdate
directory) since asking for the specific file ('index.cfm') works. I
tend to go along with the '---' in the middle of the line theory. A
simple check - does a file named 'index.html' in the same directory work?
Gene
---------------------------------------------------------------------
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
Re: [users@httpd] DirectoryIndex
Posted by Amin Thakkar <am...@infopoint.co.ug>.
I don't know '------------" and I don't know how it is came. It is came
with server setup. Can you give me right way to write a scripts.
Amin
----- Original Message -----
From: "Joshua Slive" <js...@gmail.com>
To: <us...@httpd.apache.org>
Sent: Sunday, March 06, 2005 8:33 PM
Subject: Re: [users@httpd] DirectoryIndex
> On Sun, 6 Mar 2005 17:09:20 +0300, Amin Thakkar <am...@infopoint.co.ug>
> wrote:
>> I have edit httpd.conf in /etc/httpd/conf but it is not working as I
>> want.
>> Ex I have file call index.cfm in http://infopoint.co.ug/cfmdate/index.cfm
>> when I type http://infopoint.co.ug/cfmdate it should open home page
>
>> DirectoryIndex at_domains_index.html index.html index.html.var
>> index.shtml
>> index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm
>> Index.htm
>> Home.htm Index.php
>
> What is the "---" doing in the middle there?
>
> Anyway, the page is currently giving a "forbidden" error, which means
> some kind of permissions problem. Start by checking your apache error
> log.
>
> 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
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 01-Mar-2005
>
>
---------------------------------------------------------------------
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
Re: [users@httpd] DirectoryIndex
Posted by Joshua Slive <js...@gmail.com>.
On Sun, 6 Mar 2005 17:09:20 +0300, Amin Thakkar <am...@infopoint.co.ug> wrote:
> I have edit httpd.conf in /etc/httpd/conf but it is not working as I want.
> Ex I have file call index.cfm in http://infopoint.co.ug/cfmdate/index.cfm
> when I type http://infopoint.co.ug/cfmdate it should open home page
> DirectoryIndex at_domains_index.html index.html index.html.var index.shtml
> index.cfm index.htm home.htm index.php --- Index.shtml Index.cfm Index.htm
> Home.htm Index.php
What is the "---" doing in the middle there?
Anyway, the page is currently giving a "forbidden" error, which means
some kind of permissions problem. Start by checking your apache error
log.
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