Subfolder in JSM Server

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
jaimosky
Posts: 40
Joined: 30 May 2017, 16:48

Subfolder in JSM Server

Post by jaimosky »

Hi,

I want to add a folder hanging from /htdocs (f.e /myfolder) and I add a index.html there (JSM Server).
In the W3 Server if I had this constellation and I enter the URL http://myDomain/myfolder it gives me back the index.html, but this behaviour is not happening in JSM, I have to enter http://myDomain/myfolder/index.html.

I am sure I can achieve that doing something in httpd.xml, but I cannot figure out how to do it.

Any ideas?

Jaime
tim mcentee
Posts: 40
Joined: 26 Jul 2017, 13:20

Re: Subfolder in JSM Server

Post by tim mcentee »

Hi Jaime

In HTTPD.xml you can set the server root to include myFolder or maybe add a path into the index property. I'm not sure how you would specify the index path because the root might not be defined yet when it looks for the index. Try both myFolder/index.html & www/instance/htdocs/myFolder/index.html. It may be that the index file needs to reside in the root path.

<instance name="WebServer" active="true" root="www/instance/htdocs" index="index.html">

Tim
Post Reply