Class HttpdStaticSiteManager
java.lang.Object
com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
com.aoindustries.aoserv.daemon.httpd.HttpdStaticSiteManager
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
HttpdSiteManager.JkSetting, HttpdSiteManager.Location, HttpdSiteManager.PermanentRewriteRule, HttpdSiteManager.WebAppSettings
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
httpdSite
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildSiteDirectory
(PosixFile siteDirectory, String optSlash, Set<Site> sitesNeedingRestarted, Set<SharedTomcat> sharedTomcatsNeedingRestarted, Set<PosixFile> restorecon) (Re)builds the site directory, from scratch if it doesn't exist.boolean
No anonymous FTP directory.protected boolean
No CGI.protected boolean
No PHP.Gets all the webapps for this site.Methods inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
blockAllTraceAndTrackRequests, configureFtpDirectory, createCgiPhpScript, createTestIndex, getApacheUid, getAutoWarningXml, getAutoWarningXmlOld, getInstance, getJkSettings, getPermanentRewriteRules, getRejectedLocations, getRequiredPackages, startHttpdSite, stopAndDisableDaemons, stopHttpdSite
-
Field Details
-
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 tositesNeedingRestarted
. If any shared Tomcat needs to be restarted due to changes in the files, add tosharedTomcatsNeedingRestarted
. 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 instopStartAndRestart
.- If
siteDirectory
doesn't exist, create it as root with mode 0700 - If
siteDirectory
owned by root, do full pass (this implies manual=false regardless of setting) - Otherwise, make necessary config changes or upgrades while adhering to the manual flag
- Specified by:
buildSiteDirectory
in classHttpdSiteManager
- Throws:
IOException
SQLException
- If
-
enableCgi
protected boolean enableCgi()No CGI.- Overrides:
enableCgi
in classHttpdSiteManager
- See Also:
-
enablePhp
protected boolean enablePhp()No PHP.- Overrides:
enablePhp
in classHttpdSiteManager
- See Also:
-
enableAnonymousFtp
public boolean enableAnonymousFtp()No anonymous FTP directory.- Overrides:
enableAnonymousFtp
in classHttpdSiteManager
-
getWebapps
public SortedMap<String,HttpdSiteManager.WebAppSettings> getWebapps() throws IOException, SQLExceptionDescription 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 classHttpdSiteManager
- Throws:
IOException
SQLException
-