LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-07-2005, 10:10 PM   #1
tclwp
Member
 
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
http://localhost/icon.sheet.gif

but apache return 404 not found

Can anybody give me a hand ?

thanks a ton
 
Old 03-16-2005, 01:27 PM   #2
rose_bud4201
Member
 
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 01:29 PM.
 
  


Reply



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 07:51 PM
Regex Help cmfarley19 Programming 5 03-31-2005 10:13 PM
Apache Question: AliasMatch egingell Linux - Networking 0 02-08-2005 09:38 PM
Help with Sed and regex cmfarley19 Programming 6 11-18-2004 01:09 PM
regex stumper Silly22 Programming 4 07-07-2002 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:32 PM.

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