Using Script Directory and It's Subdirectories Outside of DocumentRoot

I just ditched IIS for Apache and I'm thrilled with the results except for this one issue. First, some background. I had a script powering multiple sites. The script was stored here:

OLD SITE: c:\inetpub\oldsite\script-directory\script-subdirectories

I created a few more sites and used the same scripts for content management. To do this, I created a virtual directory pointing to the old-site's script directory:

NEW SITE: c:\inetpub\newsite
NEW SITES SCRIPTS DIR:  c:\inetpub\oldsite\script-directory\
NEW SITES SCRIPTS URL: http://www.newsite.com/script-directory
                                   
Since then I've tried creating a ScriptAlias in the Apache conf file. This let's me run scripts in "c:\inetpub\newsite", but those scripts can't access the sub-directories. The sub-directories contain images, stylesheets, supporting files, etc.  Here's what that line looks like:

ScriptAlias /script-directory "c:\inetpub\oldsite\script-directory"

How do I make it so that all of the sub-directories under "c:\inetpub\oldsite\script-directory" are accessible as well from the new site?

I really appreciate your help. Thanks!
EdelmanPlumbingAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

caterham_wwwCommented:
Try to use a normal alias instead, otherwise I think your images in c:\inetpub\oldsite\script-directory\folder\aaa.jpg are treated as cgi-script as well.

Alias /script-directory "c:/inetpub/oldsite/script-directory"
<Directory "c:/inetpub/oldsite/script-directory">
Options ExecCGI
# only this extensions are treated as cgi-script
AddHandler cgi-script .cgi .pl
</Directory>
EdelmanPlumbingAuthor Commented:
Caterham, that looks like the "best practices" way to access the scripts in "c:/inetpub/oldsite/script-directory". Unfortunately, that doesn't let me access the the sub-directories of script-directory. Is there a way to use the Directory command to tell the webserver to process requests in all the sub-directories as well?
EdelmanPlumbingAuthor Commented:
I was working on another problem when I came across the right answer. It's funny how not working on something can get things done faster!

<Directory "c:/inetpub/oldsite/script-directory">
  Options +ExecCGI +FollowSymlinks
  AddHandler cgi-script .cgi .pl
</Directory>

Alias /script-directory "c:/inetpub/oldiste/script-directory"
caterham_wwwCommented:
Is it working now?

> Unfortunately, that doesn't let me access the the sub-directories of script-directory.

And what response did you get from apache? Anything logged in your error.log?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.