spacepaste

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# test.conf

server {
    listen       127.0.0.15:9080;

    charset utf-8;

    access_log  var/www/localhost/logs/access.log;
    error_log   var/www/localhost/logs/error.log;

	set $root "/home/ruslan/var/www/localhost/public";
	root $root;

	location /favicon.ico {
		root $root;
		break;
	}

	location / {
		root $root;
		index index.html;
	}

	location ~ /storage/(.*) {
    	file_chunks on;
    	file_chunks_xml_dtd /home/ruslan/var/www/localhost/conf/file_chunks.dtd;

		root $root;
		include fastcgi_params;

		fastcgi_hide_header "Accept-Encoding";
		fastcgi_pass unix:/home/ruslan/var/run/php-fpm.sock;

		fastcgi_index xml.php;
    	fastcgi_param SCRIPT_FILENAME $document_root/storage/xml.php;

	}

	# ex. http://localhost:9080/circle/000000/ffffff/15.gif
	# location /circle {
	#	circle_gif;
	#}

}

# vim: ft=nginx fdm=marker commentstring=\ \ #%s :