Apache Webserver assistance in ScriptAlias / redirect
Hi All,
I am having trouble In Apache and was hoping you can help: Code:
vim /etc/httpd/conf.d/zzz_otrs.conf When I put the full path this loads the page fine: http://localhost/otrs/index.pl I comment out the above syntax and place the next option: Code:
vim /etc/httpd/conf.d/zzz_otrs.conf This loads http://localhost/otrs/ and diverts to http://localhost/otrs/index.pl. So this loads the page fine. However if I now type in the page http://localhost/otrs/index.pl this FAILS unless I use: http://localhost/otrs/ Is there a way to access the http page http://localhost/otrs/index.pl using both: http://localhost/otrs/ http://localhost/otrs/index.pl mod_rewrite??? Thanks |
Might try two ScriptAlias directives. One for
Code:
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/" Be advised that the order of ScriptAlias matters longest path should go first. |
Thanks for your help zhjim however this gave the same result:
However If I use: Code:
ScriptAlias /otrs/index.pl "/opt/otrs/bin/cgi-bin/index.pl" I will see if I can figure out ScriptAliasMatch Directive. |
Apologies looks to bet better now damn Browser Cache argh!
Thanks for your help! |
:) Can't count how many times I tripped over it too. Guess thats those things that are not on the mind.
|
All times are GMT -5. The time now is 02:24 AM. |