Hi group!!
I have a problem configuring apache
i want to map to two diffrent files in the same directory according to
Alias provided
So if the the user types the url as
http://zz.zz.zzz.zzz/tt
i must go to file first.html ie ie
http://zz.zz.zzz.zzz/pp/first.html
and if the user types the url as
http://zz.zz.zzz.zzz/pp
i must go to file second.html ie
http://zz.zz.zzz.zzz/pp/second.html
what is happening in current situation is that whatever be the URL of
the above two i am directed to second.html
I assume that DirectoryIndex property is causing it but i am not sure
I havent touched httpd.conf file and all the default settings are
maintained so DocumentRoot has not been changed its still
/var/www/html
My query is
with above scenarion what am i supposed to do to my conf file in
/etc/conf.d/ so that everything works right ?
I have tried using Redirect permanent and it works fine but i dont
want to pass the absolute url which is the case in Redirect
like
Redirect permanent /tt
http://localhost:9001/system/first.html
Redirect permanent /pp
http://localhost:9001/system/second.html
Can mapping to two different files which are in the same directory can
be done using aliases?
Following is my conf file in /etc/conf.d/ direcory
Alias /tt "/home/site/"
<Directory "/home/site/">
DirectoryIndex first.html
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /pp "/home/site/"
<Directory "/home/site/">
DirectoryIndex second.html
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
thanks
in advance
Ramesh