You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tim Johnson <ti...@johnsons-web.com> on 2010/11/09 21:08:48 UTC

[users@httpd] DirectoryIndex for a specific index

Platform is ubuntu 10.04
in my /etc/apache2/mods-available/dir.conf,
I have the following ::

<IfModule mod_dir.c>
  DirectoryIndex index.html index.php index.py index.cgi index.pl index.xhtml index.htm
</IfModule>

Is it possible to to set directory files names specific to the
directory:
Example:: 
for
mydomain/foo1 I could have index_foo1.html index_foo1.php ... etc

for
mydomain/foo2 I could have index_foo2.html index_foo2.php ... etc

URLs to documentation, keywords or discussions would be sufficient.
thanks
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

---------------------------------------------------------------------
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 for a specific index

Posted by Tim Johnson <ti...@johnsons-web.com>.
* Eric Covener <co...@gmail.com> [101109 14:55]:
> On Tue, Nov 9, 2010 at 3:08 PM, Tim Johnson <ti...@johnsons-web.com> wrote:
<..> > Is it possible to to set directory files names specific to the
> > directory:
> > Example::
> 
> of course you can manually do this by using DirectoryIndex inside of
> <Directory> or <Location>, but if you've got more than a few maybe you
> want to look at mod_macro.
  Thank you Eric. I've got my lead.
  cheers
-- 
Tim 
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com

---------------------------------------------------------------------
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 for a specific index

Posted by Eric Covener <co...@gmail.com>.
On Tue, Nov 9, 2010 at 3:08 PM, Tim Johnson <ti...@johnsons-web.com> wrote:
> Platform is ubuntu 10.04
> in my /etc/apache2/mods-available/dir.conf,
> I have the following ::
>
> <IfModule mod_dir.c>
>  DirectoryIndex index.html index.php index.py index.cgi index.pl index.xhtml index.htm
> </IfModule>
>
> Is it possible to to set directory files names specific to the
> directory:
> Example::
> for
> mydomain/foo1 I could have index_foo1.html index_foo1.php ... etc
>
> for
> mydomain/foo2 I could have index_foo2.html index_foo2.php ... etc
>
> URLs to documentation, keywords or discussions would be sufficient.
> thanks

of course you can manually do this by using DirectoryIndex inside of
<Directory> or <Location>, but if you've got more than a few maybe you
want to look at mod_macro.


> --
> Tim
> tim at johnsons-web.com or akwebsoft.com
> http://www.akwebsoft.com
>
> ---------------------------------------------------------------------
> 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
>
>



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
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