• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question about ASP includes

E

emsol

Guest
Hi,

Scenario...

Customer moves from a Windows server (running inspanel) to a plesk 7 Windows server and his site now wont work due to the paths being different.

Reason seems to be related to his includes - previousley, the site was setup with "enable parent paths" and uses "include virtual" statements for all its include files.

When trying to run the site on the Plesk server it comes up with errors that it cant find the files - even with "enable parent paths" set to on.

One thing I notice about the old server in comparison with the plesk one is that the site was setup in IIS6 as a username rather than a domain name - I cant actually see in the site settings where the domain name itself is pointed at the local user folder.

Should I get the customer to change all his include statements to "include file" instead - and use relative paths ? Or is there a simple way of making his virtual includes work ?

I'm mostly a Linux person and still learning IIS so any help with this would be greatly appreciated.
 
Enabling parent paths is disabled by default in IIS6 because it is a security risk. You are safer leaving it disabled.

You can still use the "include virtual" when enable parents paths is switched off. But to load files from parent directories you need to include the absolute link from the root directory instead of the relative link.
 
The web site home directory. Httpdoc root.

Eg. To include the file "www.domain.com/admin/inc/includefile.html" in the file "www.domain.com/admin/section/default.asp"

include virtual="../inc/includefile.html" will not work without parent paths enabled, but include virtual="/admin/inc/includefile.html" will work.

Basically you cant use the ".." to step back a directory, the file reference has to start from the home directory (httpdoc) with a "/".
 
Back
Top