Class HttpdStaticSiteManager

java.lang.Object
com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
com.aoindustries.aoserv.daemon.httpd.HttpdStaticSiteManager

public class HttpdStaticSiteManager extends HttpdSiteManager
Manages StaticSite configurations. These are the most stripped-down form of website. Should not allow any sort of server-side execution. Perhaps we could sell these for $1/month?
Author:
AO Industries, Inc.
  • Field Details

    • staticSite

      protected final StaticSite staticSite
  • Method Details

    • buildSiteDirectory

      protected void buildSiteDirectory(PosixFile siteDirectory, String optSlash, Set<Site> sitesNeedingRestarted, Set<SharedTomcat> sharedTomcatsNeedingRestarted, Set<PosixFile> restorecon) throws IOException, SQLException
      Description copied from class: HttpdSiteManager
      (Re)builds the site directory, from scratch if it doesn't exist. Creates, recreates, or removes resources as necessary. Also performs an automatic upgrade of resources if appropriate for the site. Also reconfigures any config files within the directory if appropriate for the site type and settings. If this site or other sites needs to be restarted due to changes in the files, add to sitesNeedingRestarted. If any shared Tomcat needs to be restarted due to changes in the files, add to sharedTomcatsNeedingRestarted. Any files under siteDirectory that need to be updated to enable/disable this site should be changed. Actual process start/stop will be performed later in stopStartAndRestart.
      1. If siteDirectory doesn't exist, create it as root with mode 0700
      2. If siteDirectory owned by root, do full pass (this implies manual=false regardless of setting)
      3. Otherwise, make necessary config changes or upgrades while adhering to the manual flag
      Specified by:
      buildSiteDirectory in class HttpdSiteManager
      Throws:
      IOException
      SQLException
    • enableCgi

      protected boolean enableCgi()
      No CGI.
      Overrides:
      enableCgi in class HttpdSiteManager
      See Also:
    • enablePhp

      protected boolean enablePhp()
      No PHP.
      Overrides:
      enablePhp in class HttpdSiteManager
      See Also:
    • enableAnonymousFtp

      public boolean enableAnonymousFtp()
      No anonymous FTP directory.
      Overrides:
      enableAnonymousFtp in class HttpdSiteManager
    • getWebapps

      Description copied from class: HttpdSiteManager
      Gets all the webapps for this site. The key is the webapp path and the value is the settings for that path. If any webapp enables CGI, then this site overall must allow CGI.
      Specified by:
      getWebapps in class HttpdSiteManager
      Throws:
      IOException
      SQLException