Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-07-2005, 11:10 PM   #1
Registered: Jan 2005
Posts: 37

Rep: Reputation: 15
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

but apache return 404 not found

Can anybody give me a hand ?

thanks a ton
Old 03-16-2005, 02:27 PM   #2
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
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?

Last edited by rose_bud4201; 03-16-2005 at 02:29 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
regex Perl help igotlongestname Programming 2 09-14-2005 08:51 PM
Regex Help cmfarley19 Programming 5 03-31-2005 11:13 PM
Apache Question: AliasMatch egingell Linux - Networking 0 02-08-2005 10:38 PM
Help with Sed and regex cmfarley19 Programming 6 11-18-2004 02:09 PM
regex stumper Silly22 Programming 4 07-07-2002 06:10 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration