Link to home
Create AccountLog in
Avatar of Alfahane
Alfahane

asked on

Same include file for multiple websites in classic ASP on IIS 6

How do I let several websites on my server access the same include-file? I want my websites to access the same file so that central functions do not have to be uploaded to each and every /public_html/

Avatar of epochasset
epochasset
Flag of United States of America image

Standard practice would be to create a directory 1 level up from each site, give the users the sites run as access to that directory, and when doing includes use relative paths.  For example, ../includes  would refer to a 'include' directory up one folder, and when doing the includes use   ../includes/whatevercodefile.php, etc.
ASKER CERTIFIED SOLUTION
Avatar of epochasset
epochasset
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Alfahane
Alfahane

ASKER

Is it possible to give access to:

c:\\websites\includes\

while run the websites at

c:\\websites\website1\public_html\
c:\\websites\website2\public_html\
c:\\websites\website3\public_html\
....

?

I dont know how to do this