• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

asp "#include vitual" problems using plesk

F

ferdz

Guest
The problem i have relates to the #include virtual that is used within .asp to include other files.

I am currenlty migrating a .asp site. On the old server the site works find but when i put it on the new plesk server i keep getting Internal server error. When i looked in the error logs it tells me

"GET /Default.asp |2|ASP_0126|Include_file_not_found 500 0 1448 243 0"

I then noticed that it was related to the include statement in the script. My gut feeling is that its related to the way plesk creates multiple web sites using virtual directories.

If anyone has come across this #include virtual problem please let me know......

thanks

Ferdinand
 
I have the same problem - virtual includes

I have the same problem and not having much joy finding the solution.

So anyone have any ideas on how to reference includes when Plesk creates virtual domains?
 
Change

<!-- #INCLUDE VIRTUAL="/dir/file.asp" -->

to

<!-- #INCLUDE VIRTUAL="/domain.com_non_ssl/dir/file.asp" -->

Relative virtual includes do not work at all. (well I couldn't get them to work)

so replace

<!-- #INCLUDE VIRTUAL="../dir/file.asp" -->

with

<!-- #INCLUDE VIRTUAL="/domain.com_non_ssl/dir/file.asp" -->

or whatever the relative path would resolve to.

The other thing you're going to have fun with is MapPath, but that's another story (just do a search for MapPath). I'm hoping both these 'features' will be fixed in version 7, but I'll believe it when I see it.

Cheers, Julian
 
We have a client that is having the same problem and we were able to get past it using the following syntax:

<!-- #INCLUDE VIRTUAL="./../dir/file.asp"
 
Back
Top