Page 1 of 1

Subfolder in JSM Server

Posted: 22 Sep 2021, 16:49
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

Re: Subfolder in JSM Server

Posted: 05 Oct 2021, 10:07
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