Hello,
Please confirm if my setting is correct and is not cause occur error 503
Please confirm if my setting is correct and is not cause occur error 503
Code:
<?xml version="1.0" encoding="UTF-8" ?>
- <httpServerConfig>
<serverName>$HOSTNAME</serverName>
<user>nobody</user>
<group>nobody</group>
<priority>0</priority>
<chrootPath>/</chrootPath>
<enableChroot>0</enableChroot>
<enableLVE>2</enableLVE>
<inMemBufSize>60M</inMemBufSize>
<swappingDir>/tmp/lshttpd/swap</swappingDir>
<autoRestart>1</autoRestart>
<autoFix503>1</autoFix503>
<gracefulRestartTimeout />
<loadApacheConf>1</loadApacheConf>
<autoReloadApacheConf>2</autoReloadApacheConf>
<apacheBinPath>/usr/local/apache/bin/httpd</apacheBinPath>
<apacheConfFile>/usr/local/apache/conf/httpd.conf</apacheConfFile>
<apachePortOffset>0</apachePortOffset>
<apacheIpOffset>0</apacheIpOffset>
<phpSuExec>1</phpSuExec>
<phpSuExecMaxConn>10</phpSuExecMaxConn>
<mime>$SERVER_ROOT/conf/mime.properties</mime>
<disableInitLogRotation>1</disableInitLogRotation>
<showVersionNumber>0</showVersionNumber>
<hideSigInErrorPage />
<enableIpGeo />
<useIpInProxyHeader>0</useIpInProxyHeader>
<extAppAbort />
<autoUpdateInterval>86400</autoUpdateInterval>
<autoUpdateDownloadPkg>1</autoUpdateDownloadPkg>
<adminEmails>morteza.khayati1@gmail.com</adminEmails>
<adminRoot>$SERVER_ROOT/admin/</adminRoot>
- <logging>
- <log>
<fileName>/usr/local/apache/logs/error_log</fileName>
<logLevel>DEBUG</logLevel>
<debugLevel>0</debugLevel>
<rollingSize>2000M</rollingSize>
<enableStderrLog>1</enableStderrLog>
</log>
- <accessLog>
<fileName>$SERVER_ROOT/logs/access.log</fileName>
<rollingSize>2000M</rollingSize>
<keepDays>30</keepDays>
<compressArchive>0</compressArchive>
</accessLog>
</logging>
<indexFiles>index.html, index.php, index.php5, index.htm</indexFiles>
<autoIndex />
<autoIndexURI />
- <htAccess>
<allowOverride>31</allowOverride>
<accessFileName>.htaccess</accessFileName>
</htAccess>
- <expires>
<enableExpires>1</enableExpires>
<expiresByType>image/*=A604800, text/css=A604800, application/x-javascript=A604800, application/javascript=A604800</expiresByType>
</expires>
- <tuning>
<eventDispatcher>best</eventDispatcher>
<SSLCryptoDevice>null</SSLCryptoDevice>
<maxConnections>2000</maxConnections>
<maxSSLConnections>500</maxSSLConnections>
<connTimeout>120</connTimeout>
<maxKeepAliveReq>1000</maxKeepAliveReq>
<smartKeepAlive>1</smartKeepAlive>
<keepAliveTimeout>10</keepAliveTimeout>
<sndBufSize>0</sndBufSize>
<rcvBufSize>0</rcvBufSize>
<maxReqURLLen>8192</maxReqURLLen>
<maxReqHeaderSize>16380</maxReqHeaderSize>
<maxReqBodySize>500M</maxReqBodySize>
<maxDynRespHeaderSize>8K</maxDynRespHeaderSize>
<maxDynRespSize>500M</maxDynRespSize>
<maxCachedFileSize>4096</maxCachedFileSize>
<totalInMemCacheSize>20M</totalInMemCacheSize>
<maxMMapFileSize>256K</maxMMapFileSize>
<totalMMapCacheSize>40M</totalMMapCacheSize>
<useSendfile>1</useSendfile>
<useAIO>1</useAIO>
<AIOBlockSize>4</AIOBlockSize>
<enableGzipCompress>1</enableGzipCompress>
<enableDynGzipCompress>1</enableDynGzipCompress>
<gzipCompressLevel>1</gzipCompressLevel>
<compressibleTypes>text/*, application/x-javascript, application/xml, application/javascript, image/svg+xml</compressibleTypes>
<gzipAutoUpdateStatic>1</gzipAutoUpdateStatic>
<gzipCacheDir />
<gzipStaticCompressLevel>1</gzipStaticCompressLevel>
<gzipMaxFileSize>1M</gzipMaxFileSize>
<gzipMinFileSize>300</gzipMinFileSize>
</tuning>
- <security>
- <fileAccessControl>
<followSymbolLink>1</followSymbolLink>
<checkSymbolLink>0</checkSymbolLink>
<forceStrictOwnership>1</forceStrictOwnership>
<requiredPermissionMask>000</requiredPermissionMask>
<restrictedPermissionMask>000</restrictedPermissionMask>
<restrictedScriptPermissionMask>002</restrictedScriptPermissionMask>
<restrictedDirPermissionMask>002</restrictedDirPermissionMask>
</fileAccessControl>
- <perClientConnLimit>
<staticReqPerSec>0</staticReqPerSec>
<dynReqPerSec>0</dynReqPerSec>
<outBandwidth>0</outBandwidth>
<inBandwidth>0</inBandwidth>
<softLimit>10000</softLimit>
<hardLimit>10000</hardLimit>
<gracePeriod>15</gracePeriod>
<banPeriod>300</banPeriod>
</perClientConnLimit>
- <CGIRLimit>
<maxCGIInstances>20</maxCGIInstances>
<minUID>11</minUID>
<minGID>10</minGID>
<priority>0</priority>
<CPUSoftLimit>60</CPUSoftLimit>
<CPUHardLimit>120</CPUHardLimit>
<memSoftLimit>450M</memSoftLimit>
<memHardLimit>500M</memHardLimit>
<procSoftLimit>400</procSoftLimit>
<procHardLimit>450</procHardLimit>
</CGIRLimit>
- <censorshipControl>
<enableCensorship>0</enableCensorship>
<logLevel>0</logLevel>
<defaultAction>deny,log,status:403</defaultAction>
<scanPOST>1</scanPOST>
</censorshipControl>
- <accessDenyDir>
<dir>/</dir>
<dir>/etc/*</dir>
<dir>/dev/*</dir>
<dir>$SERVER_ROOT/conf/*</dir>
<dir>$SERVER_ROOT/admin/conf/*</dir>
</accessDenyDir>
- <accessControl>
<allow>ALL</allow>
<deny />
</accessControl>
</security>
- <extProcessorList>
- <extProcessor>
<type>lsapi</type>
<name>lsphp5</name>
<address>uds://tmp/lshttpd/lsphp5.sock</address>
<note />
<maxConns>2000</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=5000</env>
<env>PHP_LSAPI_CHILDREN=2000</env>
<initTimeout>120</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout />
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>/usr/local/bin/lsphp</path>
<backlog>100</backlog>
<instances>1</instances>
<extUser />
<extGroup />
<runOnStartUp>0</runOnStartUp>
<extMaxIdleTime>10</extMaxIdleTime>
<priority>0</priority>
<memSoftLimit>4047M</memSoftLimit>
<memHardLimit>4047M</memHardLimit>
<procSoftLimit>4000</procSoftLimit>
<procHardLimit>5000</procHardLimit>
</extProcessor>
- <extProcessor>
<type>lsapi</type>
<name>lsphp55</name>
<address>uds://tmp/lshttpd/lsphp55.sock</address>
<note />
<maxConns>35</maxConns>
<env>PHP_LSAPI_MAX_REQUESTS=5000</env>
<env>PHP_LSAPI_CHILDREN=35</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<persistConn>1</persistConn>
<pcKeepAliveTimeout />
<respBuffer>0</respBuffer>
<autoStart>1</autoStart>
<path>$SERVER_ROOT/fcgi-bin/lsphp55</path>
<backlog>100</backlog>
<instances>1</instances>
<runOnStartUp />
<extMaxIdleTime>10</extMaxIdleTime>
<priority>0</priority>
<memSoftLimit>2047M</memSoftLimit>
<memHardLimit>2047M</memHardLimit>
<procSoftLimit>400</procSoftLimit>
<procHardLimit>500</procHardLimit>
</extProcessor>
- <extProcessor>
<type>proxy</type>
<name>127.0.0.1:2082</name>
<address>127.0.0.1:2082</address>
<note>for cPanel backend</note>
<maxConns>100</maxConns>
<pcKeepAliveTimeout>0</pcKeepAliveTimeout>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<respBuffer>0</respBuffer>
</extProcessor>
- <extProcessor>
<type>proxy</type>
<name>127.0.0.1:2095</name>
<address>127.0.0.1:2095</address>
<note>for webmail backend</note>
<maxConns>100</maxConns>
<pcKeepAliveTimeout>0</pcKeepAliveTimeout>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<respBuffer>0</respBuffer>
</extProcessor>
- <extProcessor>
<type>proxy</type>
<name>127.0.0.1:2086</name>
<address>127.0.0.1:2086</address>
<note>for WHM backend</note>
<maxConns>100</maxConns>
<pcKeepAliveTimeout>0</pcKeepAliveTimeout>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<respBuffer>0</respBuffer>
</extProcessor>
- <extProcessor>
<type>proxy</type>
<name>127.0.0.1:2077</name>
<address>127.0.0.1:2077</address>
<note>for webdisk backend</note>
<maxConns>100</maxConns>
<pcKeepAliveTimeout>0</pcKeepAliveTimeout>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<respBuffer>0</respBuffer>
</extProcessor>
</extProcessorList>
- <scriptHandlerList>
- <scriptHandler>
<suffix>php</suffix>
<type>lsapi</type>
<handler>lsphp5</handler>
</scriptHandler>
- <scriptHandler>
<suffix>php55</suffix>
<type>lsapi</type>
<handler>lsphp55</handler>
</scriptHandler>
- <scriptHandler>
<suffix>php5</suffix>
<type>lsapi</type>
<handler>lsphp5</handler>
<note />
</scriptHandler>
</scriptHandlerList>
- <railsDefaults>
<rubyBin />
<railsEnv>1</railsEnv>
<maxConns>5</maxConns>
<env>LSAPI_MAX_REQS=1000</env>
<env>LSAPI_MAX_IDLE=60</env>
<initTimeout>60</initTimeout>
<retryTimeout>0</retryTimeout>
<pcKeepAliveTimeout>60</pcKeepAliveTimeout>
<respBuffer>0</respBuffer>
<backlog>50</backlog>
<runOnStartUp>1</runOnStartUp>
<extMaxIdleTime>300</extMaxIdleTime>
<priority>3</priority>
<memSoftLimit>2047M</memSoftLimit>
<memHardLimit>2047M</memHardLimit>
<procSoftLimit>400</procSoftLimit>
<procHardLimit>500</procHardLimit>
</railsDefaults>
</httpServerConfig>