Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: ocean10000
I have an idea that will make a future project much easier to manage, however, I am not sure if what I am suggesting is possible. Please bear with me as my plan is very difficult to explain.
What I Have
A Windows2000 webserver which contains a number of websites
What The Plan Is
A large number of the websites are going to have an ASP application included on the site. The code is the same for each website and only the database will change. Ideally the URL should look like ht*p://www.widget.com/application/
As the code will constantly develop of time I need a way of making sure all the sites are using the same code as an update occurs.
My Solution (If Possible)
Somehow, on the server, just have one copy of the application. I can use the IP Address of the visitor or some other method to determine which database it needs for the visitor. Somehow, cloak the URL so it looks like ht*p://www.widget.com/application/ when it is actually ht*p://www.someotheraddress.com/genericapplication).
That way, the sites are all using the same code and there are no worries of different versions cropping up.
Any advice, ideas or help are welcome. I can't seem to find anywhere that talks about doing this.
Why have a site key, and not just use the servername as the key? Well, so www.host1.com and host1.com can have the same key.
Essentially this is doing virtual hosting at the application level.
There is only ever one instance of the application running, but it's look and behavior changes based on the servername in the request object.
Hope that makes sense and at least gives you an idea of one way to do it.
I'm very restricted in the way I can code and sadly there are issues in, for instance, the user of dll's. Therefore, I'm having to go for a more awkward method.
Thanks for you help. I guess I can narrow down the question to how do I get all the users to think they are using www.widget.com/application when they are really using www.some-other-domain-on-the-same-server.com/genericapplication?