double domain name

Help
2010-06-23
2013-04-29
  • Victor Ivrii
    Victor Ivrii
    2010-06-23

    We have two equivalent domain names

    toronto.edu
    utoronto.ca

    and jsMath configured via load.js for www.math.toronto.edu

    and does not work (does not loads) for www.math.utoronto.ca

    Is there any way *easy* way to configure to serve both (except obvious but ugly to have load2.js configured for the second domain name and loading for webpage both)?

    By the obvious reason MathJax does not have such problems

    Thanks

    Victor

     
  • Victor:

    If you leave the value for the root directory as an empty string in the jsMath/easy/load.js file, the same configuration file should work for both domains.  That will cause jsMath to try to figure out where it was loaded from and use that as the root.  This works well except in some instances with Internet Explorer if the URL where jsMath was loaded is a relative one.  If it is absolute, there should be no problem.

    Davide