docroot_group: apache
docroot_mode: '0775'
directories:
- - directory_root:
- provider: directory
+ - provider: directory
path: '/var/www/spar-checker/sparchecker-frontend/'
addhandlers:
- { handler: "proxy:unix:/var/run/php5-fpm-sparchecker.sock|fcgi://./" , extensions: '.php' }
directoryindex: 'index.php index.html'
setenv:
- 'APPLICATION_ENV production'
- - location_root:
- provider: location
+ - provider: location
path: '/'
auth_type: Digest
auth_name: server
auth_digest_algorithm: MD5
auth_user_file: '/etc/httpd/htdigest'
auth_require: 'valid-user'
- - location_api:
- provider: location
+ - provider: location
path: '/api'
- - location_sfp:
- provider: location
+ - provider: location
path: '/sfp'
+ auth_type: Digest
+ auth_name: server
+ auth_digest_provider: file
+ auth_digest_algorithm: MD5
+ auth_user_file: '/home/deploy.spk/spar-checker-conf/htdigest'
+ requires:
+ - 'valid-user'
+ - 'ip 80.146.239.2/32'
+ - 'ip 109.86.229.215/32'
+ - 'ip 195.69.134.114/32'
+ - 'ip 195.69.134.114/32'
error_documents:
- { error_code: 401 , document: "/401.html" }
- - directory_sfp:
- provider: directory
+ - provider: directory
path: '/var/www/spar-checker/sparchecker-backend/public/sfp/'
addhandlers:
- { handler: "proxy:unix:/var/run/php5-fpm-sparchecker.sock|fcgi://./" , extensions: '.php' }
rewrite_rule:
- '^(.*)$ %%{ich-trickse}{ENV:BASE}/index.php [L]'
- - directory_api:
- provider: directory
+ - provider: directory
path: '/var/www/spar-checker/sparchecker-backend/public/api/'
addhandlers:
- { handler: "proxy:unix:/var/run/php5-fpm-sparchecker.sock|fcgi://./" , extensions: '.php' }