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 December 29th, 2003, 06:45 PM
irisheyes4777 irisheyes4777 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 2 irisheyes4777 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Help with Apache/Directories

Here's the situation: we have a codebase for a store, let's say it exists at:

/webroot/code/store/

We have multiple stores to work off of this single codebase, so what we have is this:

http://www.website.com/stores/store1/
http://www.website.com/stores/store2/
http://www.website.com/stores/store3/

Basically, anytime a URL is called that contains that "/stores/" part, we want to serve off of that single codebase - but retain the "store1" part so we can do a database lookup to see which store we are handling. I'm not an apache wiz by ANY stretch of the imagination, so if anybody could shed some light on how to do this, I would greatly appreciate it! Thanks!

Reply With Quote
  #2  
Old December 30th, 2003, 07:56 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
It probably depends in part on how the codebase works. The quick and easy way to handle this would be to have "stores" be not a directory but a script. That would make "/store1/" PATH_INFO, an environment variable you could pass along to the codebase to determine which database to use. No need even to fiddle with apache if you go this route. In this case, "stores" simply becomes a wrapper around your codebase. I'm not sure how PHP deals with path info, but I know perl handles it very cleanly.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Help with Apache/Directories


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 3 hosted by Hostway