httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Radford <phi...@radford-online.co.uk>
Subject [users@httpd] Virtual folder question
Date Fri, 23 Mar 2007 19:56:12 GMT
<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
body{font-family:'Arial';font-size:10pt;font-color:'#000000';}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
body{}
--></style>
</head><BODY BGCOLOR="#FBF5E1" ><div><SPAN style="font-family:'Arial';font-size:10pt;">Hi
all,</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">I am looking for a way
to setup a virtual folder/alias on apache to identify each customer in my application.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">We currently have the following
in place on our web application: 1 alias called booking with a querystring parameter called
site to identify each customer:-</SPAN></div>
<div><SPAN style="font-family:'Arial';font-size:10pt;"><a href="http://www.xyz.com/booking/customer/home.php?site=client1">http://www.xyz.com/booking/customer/home.php?site=client1</a></SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">This is fine but causes
problems when dealing with sessions and having to store a cookie on the browser to remember
the site reference i.e. client1, client2 etc... The site reference also determines which database
is loaded and other options like stylesheet and images etc.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">I would like to migrate
this to the following example :-</SPAN></div>
<div><SPAN style="font-family:'Arial';font-size:10pt;"><a href="http://www.xyz.com/client1/booking/customer/home.php">http://www.xyz.com/client1/booking/customer/home.php</a></SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">Here client1 is the identifer
for each customer but I do not want to create hundreds of folders on the system for each customer
as the application code only exists in one place.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">Can this be achieved by
using Apache and the mod_rewrite module and can anyone advise or suggest how I go about doing
this.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">I have limited knowledge
of the mod_rewrite module or any other modules in Apache.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">Many thanks.</SPAN></div>
<div>&nbsp;</div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">Regards</SPAN></div>
<div><SPAN style="font-family:'Arial';font-size:10pt;">Philip Radford</SPAN></div>
</body></html>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message