#
### fcgi processes configuration
#
FcgidMaxRequestsPerProcess 1000
FcgidMinProcessesPerClass 0
FcgidMaxProcesses 100
FcgidProcessLifeTime 0
#
### TimeOuts configuration
#
FcgidIdleTimeout 10
#
### Scan Intervals configuration
#
FcgidBusyScanInterval 120
FcgidErrorScanInterval 5
FcgidZombieScanInterval 5
FcgidIdleScanInterval 5
### SET to 0!!! otherwise mod_fcgid will do it's own output buffering
### by default it's 65536 and not 0
### MUST be set if SEE used
OutputBufferSize 0
## This is the maximum time limit for request handling.
## If a FastCGI request does not complete within BusyTimeout
## seconds, it will be subject to termination.
## Set to big number if SSE used
## NOTE: Default BusyScanInterval is 120 sec
BusyTimeout 120
## Set to big number if SSE used
## This is the maximum period of time the module will
## wait while trying to read from or write to a FastCGI application
IPCCommTimeout 120
## Let FastCGI to catch a Broken Pipe, if the SSE subscription
## was closed. E.g. browser or site was closed.
IdleTimeout 10
KeepAlive on
MaxKeepAliveRequests 1000
KeepAliveTimeout 10
ServerAdmin support@yumaworks.com
### CHANGE ServerName TO YOUR DOMAIN NAME!!!
ServerName localhost
#### CHANGE DocumentRoot to match where restconf is installed
DocumentRoot /var/www/yang-api
AllowEncodedSlashes On
AddHandler fcgid-script .fcgi
#### CHANGE '/var/www/yang-api' to match DocumentRoot if needed
SetHandler fcgid-script
Options Indexes FollowSymLinks ExecCGI
AllowOverride all
Order allow,deny
allow from all
### DISABLE PASSWORD!!
### AuthType Basic
### AuthName "RESTCONF"
### AuthUserFile /var/www/passwords/passwd
### Require valid-user
#### CHANGE '/var/www/yang-api' to match DocumentRoot if needed
SetHandler default-handler
ForceType 'application/xrd+xml'
## enable mod_headers to use the following directives
## > a2enmod headers
Header unset Etag
Header unset Last-Modified
Header unset Accept-Ranges
Header set Cache-Control no-cache
Header merge Cache-Control no-store
Header set Pragma no-cache
## Ony GET is allowed
Order deny,allow
Deny from all
AllowOverride all
Order allow,deny
allow from all
#### CHANGE to preferred logging location if desired
#### MUST Change if not Apache2!!!
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
#### CHANGE to preferred logging location if desired
#### MUST Change if not Apache2!!!
CustomLog ${APACHE_LOG_DIR}/access.log combined