LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   APACHE: AliasMatch not work, regex not right? (https://www.linuxquestions.org/questions/linux-software-2/apache-aliasmatch-not-work-regex-not-right-298966/)

tclwp 03-07-2005 10:10 PM

APACHE: AliasMatch not work, regex not right?
 
I've add a line into httpd.conf
AliasMatch /icon.sheet.gif* /usr/local/apache2/icons/icon.sheet.gif

#apachectl graceful

give the address to firefox
http://localhost/icon.sheet.gif

but apache return 404 not found

Can anybody give me a hand ?

thanks a ton

rose_bud4201 03-16-2005 01:27 PM

Perhaps try

AliasMatch ^/icon.sheet.gif(.*) /usr/local/apache2/icons/icon.sheet.gif

That will match anything like /icon.sheet.gif, /icon.sheet.gif3423421, /icon.sheet.gif2, etc and it will serve icon.sheet.gif in all cases. Is that more or less what you want?


All times are GMT -5. The time now is 07:27 PM.