PHP Classes

File: SmallServerAdmin/Libs/Nemiro/Nginx/UnitTests/test.conf

Recommend this page to a friend!
  Classes of Aleksey Nemiro  >  PHP Small Server Administrator  >  SmallServerAdmin/Libs/Nemiro/Nginx/UnitTests/test.conf  >  Download  
File: SmallServerAdmin/Libs/Nemiro/Nginx/UnitTests/test.conf
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Small Server Administrator
Web panel for small Debian and Ubuntu servers
Author: By
Last change:
Date: 6 years ago
Size: 611 bytes


Class file image Download
# This is test conf
server {
	# 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;

	# location #2
	location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
		expires max;
		log_not_found off;

	# location #3
	location ~* "^(?<page>[\w\d]+)([\.]{1}).ashx$" {

For more information send a message to info at phpclasses dot org.