Socket
Book a DemoInstallSign in
Socket

htcachemon

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htcachemon

htcachemon is a tool to view statistics about entries in an Apache `mod_disk_cache` cache. Users can also manually purge URLs from the cache. It uses the Apache `htcacheclean` tool in the back-end to accomplish this.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

htcachemon

htcachemon is a tool to view statistics about entries in an Apache mod_disk_cache cache. Users can also manually purge URLs from the cache. It uses the Apache htcacheclean tool in the back-end to accomplish this.

screenshot

Security

Both the server component and the web interface should be secured from unauthorised access. Exactly what measures you take to achieve that is left as an exercise for the reader.

Installation

API Server

You will need to have node.js and the Apache htcacheclean utility installed and, of course, an Apache server and a mod_cache_disk cache.

  • Clone the git repository at git@github.com:stainsby/htcachemon.git.
  • cd into your cloned repository and run npm install to install the NPM packages that the server component depends on.
  • Edit <repo>/config.js to suit your system. Common items to change will be cacheDir, uid and http.port.
  • Run the server with the user corresponding to uid in the config.js file. The serve.sh script provides an example of this.

Web interface

The web interface is just a set of static files to create an AngularJS single page application. All dependencies are provided (or come from CDNs).

  • Adjust <repo>/ui/config.js to suit your system. You will likely need to change the API endpoint.
  • Configure your web server to serve the files in <repo>/ui.

If you are only testing, you can use the devserve.sh script to serve the web interface. You will need to have http-server installed - for example, via npm -g install http-server.

FAQs

Package last updated on 12 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts