1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

asp "#include vitual" problems using plesk

Discussion in 'Plesk for Windows - 8.x and Older' started by ferdz, Jul 22, 2004.

  1. ferdz

    ferdz Guest

    0
     
    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
     
  2. addstravel

    addstravel Guest

    0
     
    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?
     
  3. inCharge.co.uk

    inCharge.co.uk Guest

    0
     
    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
     
  4. Pinstripe

    Pinstripe Guest

    0
     
    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"
     
Loading...