Include virtual does not work on 2003-server?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Niels Sloth

    Include virtual does not work on 2003-server?

    Hi

    I have 9 asp-sites on a Win2003 server, and would like to use the same
    include file, but it does not work.

    The path for the servers default website (which is not where the
    problem is) is c:\inetpub\wwwr oot\ and the rest of the sites are at
    c:\inetpub\wwwr oot\websites\Si te1\ , ..\Site2\ etc.

    I tried using the following on the secondary sites:
    <!--#include virtual="Websit es/Include.asp" -->
    <!--#include virtual="/Websites/Include.asp" -->
    <!--#include file="../Include.asp" -->

    All works fine on my development machine (Win2k) and on the server
    (Win2003) when it is accessed through the LAN, but when I cut the LAN
    and access the server through www (e.g. http://www.site1.dk) it does
    not work.

    I suspect that the internet user does not have rights to the virtual
    path, but how do I solve that?

    Can anybody give a clue?

    As you may see from the above I am not a pro.

    Thanks.

    Niels from Denmark


  • Ken Schaefer

    #2
    Re: Include virtual does not work on 2003-server?

    Do you get an error? What is it?

    I suspect that "Enable Parent Paths" is not set (it's a security risk),
    however in that case the site shouldn't work no matter whether it's accessed
    locally or via an external DNS address.

    Cheers
    Ken

    "Niels Sloth" <sloth@post1.te le.dk> wrote in message
    news:7323f458.0 310072214.73e24 c1f@posting.goo gle.com...
    : Hi
    :
    : I have 9 asp-sites on a Win2003 server, and would like to use the same
    : include file, but it does not work.
    :
    : The path for the servers default website (which is not where the
    : problem is) is c:\inetpub\wwwr oot\ and the rest of the sites are at
    : c:\inetpub\wwwr oot\websites\Si te1\ , ..\Site2\ etc.
    :
    : I tried using the following on the secondary sites:
    : <!--#include virtual="Websit es/Include.asp" -->
    : <!--#include virtual="/Websites/Include.asp" -->
    : <!--#include file="../Include.asp" -->
    :
    : All works fine on my development machine (Win2k) and on the server
    : (Win2003) when it is accessed through the LAN, but when I cut the LAN
    : and access the server through www (e.g. http://www.site1.dk) it does
    : not work.
    :
    : I suspect that the internet user does not have rights to the virtual
    : path, but how do I solve that?
    :
    : Can anybody give a clue?
    :
    : As you may see from the above I am not a pro.
    :
    : Thanks.
    :
    : Niels from Denmark
    :
    : www.biopix.dk


    Comment

    • Niels Sloth

      #3
      Re: Include virtual does not work on 2003-server?

      > Do you get an error? What is it?

      It is: HTTP 500 - Internal server error
      [color=blue]
      > I suspect that "Enable Parent Paths" is not set (it's a security risk),
      > however in that case the site shouldn't work no matter whether it's accessed
      > locally or via an external DNS address.[/color]

      I tried to Enable Parent Paths, but it does not help.

      Could it be something with the permissions for the directory where the
      include file is sitting?

      Thanks.

      Niels

      Comment

      • Jeff Cochran

        #4
        Re: Include virtual does not work on 2003-server?

        On 8 Oct 2003 05:20:56 -0700, sloth@post1.tel e.dk (Niels Sloth) wrote:
        [color=blue][color=green]
        >> Do you get an error? What is it?[/color]
        >
        >It is: HTTP 500 - Internal server error[/color]

        Start here:

        Why do I get a 500 Internal Server error for all ASP errors?


        Jeff

        [color=blue][color=green]
        >> I suspect that "Enable Parent Paths" is not set (it's a security risk),
        >> however in that case the site shouldn't work no matter whether it's accessed
        >> locally or via an external DNS address.[/color]
        >
        >I tried to Enable Parent Paths, but it does not help.
        >
        >Could it be something with the permissions for the directory where the
        >include file is sitting?
        >
        >Thanks.
        >
        >Niels[/color]

        Comment

        • Niels Sloth

          #5
          Re: Include virtual does not work on 2003-server?


          Thanks, i think I mentioned that I am not a pro.

          I enabled error messages and now I get:

          Active Server Pages error 'ASP 0126'

          Include file not found

          /testinclude.asp , line 3

          The include file '/websites/IncludeMicro2.a sp' was not found.

          The address is BTW http://www.feriehuse.info/testinclude.asp .

          Does that give you a clue?

          Niels

          *** Sent via Developersdex http://www.developersdex.com ***
          Don't just participate in USENET...get rewarded for it!

          Comment

          • Ken Schaefer

            #6
            Re: Include virtual does not work on 2003-server?

            If I type in:

            I get: 404 File or Directory not found

            which kinda indicates that there isn't a directory called /websites off the
            root of the website.

            Add /websites as a virtual directory (if required) off the root of the
            website. then your include willl start working. remember (<!-- #include
            virtual=""-->) always starts from the root of the current website, not from
            the location of the current page.

            Cheers
            Ken


            "Niels Sloth" <sloth@post1.te le.dk> wrote in message
            news:ub9uV6ajDH A.2328@TK2MSFTN GP10.phx.gbl...
            :
            : Thanks, i think I mentioned that I am not a pro.
            :
            : I enabled error messages and now I get:
            :
            : Active Server Pages error 'ASP 0126'
            :
            : Include file not found
            :
            : /testinclude.asp , line 3
            :
            : The include file '/websites/IncludeMicro2.a sp' was not found.
            :
            : The address is BTW http://www.feriehuse.info/testinclude.asp .
            :
            : Does that give you a clue?
            :
            : Niels


            Comment

            • Niels Sloth

              #7
              Re: Include virtual does not work on 2003-server?

              [color=blue]
              >which kinda indicates that there isn't a directory >called /websites[/color]
              off the[color=blue]
              >root of the website.[/color]

              Which there is not, the default website on the server (www.biopix.dk)
              has its root in c:\inetpub\wwwr oot\, the include file is in
              c:\inetpub\wwwr oot\websites\In cludeMicro2.asp and finally the domain
              www.feriehuse.info has its root in
              c:\inetpub\wwwr oot\websites\Fe riehuseInfo\
              [color=blue]
              >Add /websites as a virtual directory (if required) off the >root of the[/color]
              website. Then your include willl start working.

              So i guess my question now is if I can add c:\inetpub\wwwr oot\websites\
              as a virtual directory to the site www.feriehuse.info (and a newbie
              instruction how exactly to do it), or if I can address it in some other
              way?

              Thanks.

              Niels, Denmark

              *** Sent via Developersdex http://www.developersdex.com ***
              Don't just participate in USENET...get rewarded for it!

              Comment

              • Niels Sloth

                #8
                Re: Include virtual does not work on 2003-server?

                Hi again all.

                I consulted my new 1748 p. 2003 bible, and found out how to create a
                virtual directory.

                Thanks for the lesson, and thank you for your patience. Maybe I shall
                finish A this month, and if I am lucky I can continue to B next month,
                and, who knows, go further to C next year.

                Thanks again.

                Niels, Denmark.



                *** Sent via Developersdex http://www.developersdex.com ***
                Don't just participate in USENET...get rewarded for it!

                Comment

                Working...