Solved

Sharing ASP Code Library Between Subdomains

Posted on 2007-11-18
6
579 Views
Last Modified: 2013-11-13
Hi.

I have one master website (mydomain.co.uk), and am building a regionalised website network.  There will be a separate website for each region:

london.mydomain.co.uk
birmingham.mydomain.co.uk
etc

There will be close to 40 subdomains in all.

There will be a central database, and central admin/cms system, but each sub domain will display content relevant to the region/sub domain.

I have not much experience with sub domains, and as this is a large project with minimal staffing, I need to get this right.  I need to minimize the amount of administration and coding work that is subsite-dependent.  For example I don't want to maintain separate sub folders of asp include files (my code library).  I want to use a central location that all sub domains can access, without jeopardizing the folder security on the web server.

The web server is iis6 running on a win2003 box, and the application is Classic ASP / SQL 2000.  

My questions really are:

1) Is there a better overall solution to what I am trying to achieve?
2) How can I safely share a common library of application files (css, js, asp, graphics)
3) Maintain a separate application (global.asa) for each sub domain, but also utilize a central global.asa?

Thanks,

TheFoot
0
Comment
Question by:Barry Jones
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 25

Expert Comment

by:kevp75
ID: 20310120
1-2) You could run everything from the database.  Store your individual site configurations in individual XML files.  Do some url REWriting so no-one sees that you are running a centralized app
3) I would stay away form using a global.asa file...too many issues with events not firing when they should
0
 
LVL 12

Author Comment

by:Barry Jones
ID: 20311493
Thanks for your reply.

That makes sense.  How does URL rewriting affect search engines and seo?  Do you also mean to store graphics and the actual asp include files as binary in the database?  I couldnt store all of them, and it wouldnt make sense to store some, but not all.  How do I rewrite URLs in IIS anyhow?

I see the advantage in storing global app configuration as xml or whatever, as opposed to global.asa.  I would still need individual global.asa's for session stuff no?

TheFoot
0
 
LVL 25

Accepted Solution

by:
kevp75 earned 500 total points
ID: 20316276
No, I wouldn't store any file in the database....too much of a hit on the server.  I meant configuration options, page content, etc...

You would need seperate global.asa files only if you are going to use multiple code bases.  If you use a single code base, you'll only need one  (still wouldn't recommend using it though...)

URL rewriting will make the pages more SEO, as instead of having youpage.asp?compID=MyVersionOfTheApp&myID=123&blah=blah, it tones them down to /youpage.asp  (and most of the time, you can make it spoof a directory, so it would become /yourpage/)
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 12

Author Comment

by:Barry Jones
ID: 20316728
Ok I understand.  That happens to some degree now, except that I use global.asa for constant values, and session variables.

I will look into this URL rewriting a bit more - thanks for the advice.  Any ideas on how to share the application files?  Specifically I need to share javascript files, css files and asp code libraries.  I only want to store them in one location, and have all subdomains have access to them.

Thanks, TheFoot
0
 
LVL 12

Author Comment

by:Barry Jones
ID: 20345551
OK I am going to store all shared code in a subdomain, and map a virtual directory called "code" to it from each other subdomain.  That should work shouldn't it?

TheFoot
0
 
LVL 25

Expert Comment

by:kevp75
ID: 20345766
it should do the trick
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
My Do While is Not Producing Anything 15 87
Date on a table 16 46
Windows Server 2102 R2 - IIS 8.5 redirection assistance ? 7 71
JS to redirect to prev page 8 47
Agile and Scrum have almost become synonymous. Have you wondered what's the difference? Scrum is just one way to be Agile. It is the most popular which leads to the common confusion. Agile actually refers to a philosophy shared by group of developme…
A simple overview of the possibilities of using technology for project management.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question