A busy evening

The last couple of days I have devoted what little time I’ve had for arachnolingua to curation – moving stuff out of the spreadsheet into the database, grabbing a couple of interesting papers about several species of fly that avoid jumping spider predation by mimicking the spiders’ territorial display and no coding what so ever.  That changed this evening, though it was more configuration than coding.

A couple of months back, I worked through most of the examples in maven by example, which included a couple of web application projects.  In the process of working through them, I realized that, even if I didn’t actually use JSP or any Java support, it would still be simpler to put all the pages into a *.war file which the tomcat manager app would handle the deployment of.  This would save me moving lots of files or archives to the server and worrying about things getting out of synch.  This evening I updated the Spider-Behavior project to use maven as a build tool, did a little bit of testing using a local jetty server, then pushed a war file to the server.  It worked well enough that I copied most of the other files and then worked on configuring apache, which had been serving the static file for arachnolingua all along, to proxy to the tomcat server (as I had planned ever since I chose tomcat to deploy the sesame server).  It took over an hour to remember how to configure apache to do the proxies, but that seems to be sufficient for the present.  Another hour of iterative tweaking and I was able to completely hide tomcat behind the firewall (and not specify the tomcat port in the ajax call backs on the sesame testing page).  This should stop the extended sessions, originating from Chinese ip addresses, of attempts to break into the tomcat management tool (it’s simple enough not to use manager, admin, or tomcat as the name for your privileged tomcat account anyway).

So progress in both build automation (= repeatability) and security.  All in all, a productive evening.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s