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
Subfolder in JSM Server
Moderator: jeanmichel
-
tim mcentee
- Posts: 40
- Joined: 26 Jul 2017, 13:20
Re: Subfolder in JSM Server
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
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