PHP Classes

File: UnitTests/test.conf

Recommend this page to a friend!
  Classes of Aleksey Nemiro   PHP Nginx Config   UnitTests/test.conf   Download  
File: UnitTests/test.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Nginx Config
Read and write Nginx server configuration files
Author: By
Last change:
Date: 8 years ago
Size: 611 bytes


Class file image Download
# This is test conf server { # server name server_name; root /home/; # root path auth_basic "Test server"; auth_basic_user_file /home/; # location #1 location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass; } # location #2 location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } # location #3 location ~* "^(?<page>[\w\d]+)([\.]{1}).ashx$" { proxy_pass; } }