LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 01-23-2002, 02:39 PM   #1
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
Question Apache and mod_rewrite


Probably the wrong board, I apologise if it is. I consider this Linux related simply because I am doing this on Linux -- so yeah, there is my lame reasoning.

I am trying to get the host of a FQDN "memorized" by a regular expression in a RewriteCond, then pass that backreference to an Alias, as below:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.])+\.domain\.com$
Alias /logos /home/clients/%1/logos

Yes, I know this doesn't work as it is. But hopefully you can see what I am trying to accomplish. Is there anyway to do this? Perhaps maybe not even with mod_rewrite, mod_alias or either?
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache mod_rewrite problems compu73rg33k Linux - Software 0 11-27-2005 10:42 AM
Apache: no mod_rewrite module? psychobyte Linux - Networking 1 05-07-2005 01:43 AM
Apache Mod_rewrite help! soulsniper Linux - Software 0 01-16-2005 06:23 PM
Apache:mod_rewrite MadMikie Linux - Software 0 08-03-2004 08:33 AM
Apache (mod_rewrite) question Wonko the Sane Linux - Software 1 06-15-2003 01:55 PM


All times are GMT -5. The time now is 05:14 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration