Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #203 (closed question: fixed)

Opened 8 years ago

Last modified 8 years ago

Mirroring?

Reported by: anders.gotaas.nordby@… Owned by: steve@…
Priority: major Component: 404Handler
Keywords: Cc:

Description

The solution I'm working on is using mirroring, and of course I want to edit the redirects for the site in one place only.

I thought that I could either use a fixed path (accessible from both servers), or use the VPP folders, but both methods seems to fail.

What is the best approach for using the 404 handler with a mirrored site?

Change History

comment:1 Changed 8 years ago by steve@…

Not sure what you mean? Are you referring to the config file?

comment:2 Changed 8 years ago by anders.gotaas.nordby@…

Setting the EPsBvn404HandlerRedirectsXmlFile to a physical path, results in the following exception:
c:\CustomRedirects.config' is not a valid virtual path.

Setting the EPsBvn404HandlerRedirectsXmlFile to a VPP folder defined in the Web.config file does not work. Let's say I have a VPP folder named Redir, and my EPiServer solution is in C:\Source, and I set EPsBvn404HandlerRedirectsXmlFile to "/Redir/CustomRedirects.config"... Then the 404Handler looks for the file in the location "c:\Source\Redir\CustomRedirects.config" (without checking the Web.config for the location of the VPP folder Redir), and I get a "file not found" exception.

So either way, I only get the 404Handler to work if the CursomRedirects.config file is located within the web-solution, and is referred to by its virtual name.

My work-around is to make sure the two servers sync the two copies of this file with each other, but it would be better if they could simply share ONE copy of the file.

comment:3 Changed 8 years ago by steve@…

  • Status changed from new to accepted

I agree, it would be better to have only one copy. Ideally - this data would be stored in the database (Dynamic Data Store?) I'm looking into doing a quick fix with support for loading the file from a VPP, but as of now we have a cache dependency to this file as it is cached and reloaded automatically if changed.

The cache dependency would have to tag along (I think having a dependency on a file in a VPP is also possible), as I do not want this to be handled differently.

I'll have a look at it.

comment:4 Changed 8 years ago by steve@…

  • Status changed from accepted to closed
  • Resolution set to fixed

Please see changeset:1500 for an attempt on a fix. It now tries to load from a VPP. Beware that it will cache for ever if there is no local mappable file (only the Native File VPP supports that.) This is something you will have to live with until the data is stored somewhere else.

Note: See HelpUser/Tickets for help on using tickets.