SunQuest
 
           Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old June 18th, 2004, 05:53 PM
troutstudio troutstudio is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 troutstudio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
AliasMatch - or something else???

I'm not sure if I'm on the right track here - is AliasMatch what I need?

I want to redirect every users home page so that it ends up at:
/user/ instead of /~user.

I did this one and it's fine:

Alias /user_a/ "/Volumes/UserData/dml_users/user_a/Sites/"
<Directory "/Volumes/UserData/dml_users/user_a/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

What would I use (using these exact pathnames) to get the same result for every user in that folder?

If anyone can help I'd appreciate it and it will be passed on!

Reply With Quote
  #2  
Old June 21st, 2004, 08:19 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Yeah, I think AliasMatch'd probably do the trick. Sample syntax follows:

AliasMatch ^/icons(.*) /usr/local/apache/icons$1
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
  #3  
Old June 21st, 2004, 11:14 AM
troutstudio troutstudio is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 troutstudio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
A little clarification please

Thanks for the post! Sorry to be obtuse, but could you explain or point me towards any docs that tell exactly what the expressions in that example mean? I don't have any experience of regular expressions and would like to find a primer or something relating to their use in Apache.

Reply With Quote
  #4  
Old June 21st, 2004, 12:14 PM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
You should be able to google "regular expression" or "regex" and find a million tutorials that'll help you out. To get you started, the expression I listed above looks for a string that begins with "/icons" plus any number of other characters (of any type). The ^ means "begins with," the . means "any character of any type," and the * means "any number." The parentheses group everything after "/icons" together and save the resulting match in the variable $1.

So an icon referenced as "/icons/my_icon.gif" would be aliased to "/usr/local/apache/icons/my_icon.gif" because everything after "/icons" is stuck in $1, which is appended to "/usr/local/apache/icons".

Reply With Quote
  #5  
Old June 24th, 2004, 05:50 PM
troutstudio troutstudio is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 3 troutstudio User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Expressions

Thanks very much !

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > AliasMatch - or something else???


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway