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
FieldsFields inherited from class com.aoindustries.aoserv.daemon.httpd.HttpdSiteManager
httpdSite -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildSiteDirectory(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.booleanNo anonymous FTP directory.protected booleanNo CGI.protected booleanNo 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
siteDirectorydoesn't exist, create it as root with mode 0700 - If
siteDirectoryowned 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:
buildSiteDirectoryin classHttpdSiteManager- Throws:
IOExceptionSQLException
- If
-
enableCgi
protected boolean enableCgi()No CGI.- Overrides:
enableCgiin classHttpdSiteManager- See Also:
-
enablePhp
protected boolean enablePhp()No PHP.- Overrides:
enablePhpin classHttpdSiteManager- See Also:
-
enableAnonymousFtp
public boolean enableAnonymousFtp()No anonymous FTP directory.- Overrides:
enableAnonymousFtpin classHttpdSiteManager
-
getWebapps
public SortedMap<String,HttpdSiteManager.WebAppSettings> getWebapps() throws IOException, SQLExceptionDescription copied from class:HttpdSiteManagerGets 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:
getWebappsin classHttpdSiteManager- Throws:
IOExceptionSQLException
-
