johnnyGor
johnnyGor

Reputation: 161

How to change url for magnolia cms application

I would like to ask about the way how I shoudl change my app link when moving to production. During dev it was like //mydomain.com/magnoliaPublic/myApp/ but now I have to change it to be like myclientdomain.com/ without magnoliaPublic/myApp. Inside the jsp pages I have links for images pointing to the one with magnoliaPublic/resource/myApp.

Best Regards Jan

Upvotes: 0

Views: 2654

Answers (1)

Jozef Chocholacek
Jozef Chocholacek

Reputation: 2924

You have basically three possibilities:

  1. Use Apache with mod_rewrite: https://wiki.magnolia-cms.com/display/WIKI/Rewrite+URLs+with+Apache
  2. Define two independent Services in your Tomcat's server.xml (e.g. author.mydomain.com and www.mydomain.com), and deploy author instance in the first one, and public instance in the second one, both as a ROOT webapp. Then use Apache and mod_proxy.
  3. If you cannot use Apache HTTPD to proxy your Tomcat, you can still deploy the public instance as ROOT webapp, and keep the author instance as magnoliaAuthor (or just author). Then you will have your public instance as mydomain.com and author instance as mydomain.com/author (of course if you configure your Tomcat to run at the port 80).

Upvotes: 2

Related Questions