Request for configurable App and Content folders
The ABMaterial library v1.20 and earlier require the ABM webapp content to be located immediately below a "www" folder on the web server. By convention the files below the "www" folder are assumed to be on the public Internet and accessible by a browser.
However, hosting companies are split on this architecture. Instead of "www", many hosts serve Internet content under the folder "public_html" and yet others provide both "public_html" and "www" for compatibility.
Our host follows the "public_html" convention. We could use a symlink to make "www" an alias for "public_html" but in general these things should be app configurable.
While ABMaterial's content structure should remain distinct, we propose adding two configurable paths where the developer can specify:
We have three websites hosted under "public_html." Note that DEMO.JAR and JETTY.KEYSTORE are located in a private folder above public_html and inaccessible to the public internet.
Following the example above the configurable ABM app and content paths would be:
AbmDirApp="/usr/home/macthomas/b4j/abmwebapp"
AbmDirContent="/usr/home/macthomas/public_html/macthomasengineering.com/abmwebapp"
The ABMaterial library v1.20 and earlier require the ABM webapp content to be located immediately below a "www" folder on the web server. By convention the files below the "www" folder are assumed to be on the public Internet and accessible by a browser.
However, hosting companies are split on this architecture. Instead of "www", many hosts serve Internet content under the folder "public_html" and yet others provide both "public_html" and "www" for compatibility.
Our host follows the "public_html" convention. We could use a symlink to make "www" an alias for "public_html" but in general these things should be app configurable.
While ABMaterial's content structure should remain distinct, we propose adding two configurable paths where the developer can specify:
- The location of the ABM webapp .JAR (Defaults to File.DirApp)
- The location of the ABM webapp content (Defaults to Server.StaticFilesFolder?)
We have three websites hosted under "public_html." Note that DEMO.JAR and JETTY.KEYSTORE are located in a private folder above public_html and inaccessible to the public internet.
Following the example above the configurable ABM app and content paths would be:
AbmDirApp="/usr/home/macthomas/b4j/abmwebapp"
AbmDirContent="/usr/home/macthomas/public_html/macthomasengineering.com/abmwebapp"
Last edited: