Skip to main content
Known Participant
November 30, 2009
Question

Common Server, Common Folder, Different Applications

  • November 30, 2009
  • 1 reply
  • 471 views

I have a server with a few different websites

I would like to use a folder in one of the other websites for this new website (client wants the pages to update on both sites when the update the main site).  My pages are essentially just a list of variables, which the Application.cfc processes and plugs into a template.  I have made a virtual folder in IIS and it looks like it is including just fine, but it looks like it is using the Application.cfc of the main site.  Any ideas of how to pull in the file but avoid the processing before?

    This topic has been closed for replies.

    1 reply

    Inspiring
    November 30, 2009

    Put your new site in a different folder, outside the other site.  Put an Application.cfc in it.  cfinclude the pages you need from the first site.

    whoisit28Author
    Known Participant
    November 30, 2009

    That is exactly what I have but it uses the main site's Application.cfc instead of the new sites Application.cfc

    tclaremont
    Inspiring
    December 2, 2009

    Put an application.cfm page in the directory in question. Within that application.cfm, CFINCLUDE the desired application.cfm from the other site. This will prevent the "wrong" application.cfc from loading every time the page is requested.