server server_name test dev clickky biz www test dev clickky biz clien

 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
47
48
49
50
51
52
53
54
55
56
57
server {
server_name test.dev.clickky.biz www.test.dev.clickky.biz;
client_max_body_size 64M;
access_log off;
set $dev_root /var/www/dev.clickky.biz;
set $test_root /var/www/test.dev.clickky.biz;
set $common_root /var/www;
root $test_root;
rewrite_log on;
error_log /var/log/nginx/localhost.error_log debug;
location @test_backend {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $test_root/index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
location @dev_backend {
root $dev_root;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME dev.clickky.biz/index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
# location ~ ^/(sites|captcha|about|ad-networks|affiliates|agencies|batch|blog|boost-campaigns|case-study|category|ckeditor|comment|contact|cookies|ctools|developers|events|facebook-ads|facebook-mobile|file|filter|frontpage|i18n|i18n_string|image_captcha|imce|industry|jobs|main-page|mobile-app-promotion|node|overlay|overlay-ajax|pages-sort|privacy-policy|publisher-affiliate-recruiter|rss.xml|sites|slider-eng|slider-rus|solutions|system|taxonomy|terms-and-conditions|token|toolbar|users|views|web-cpa|web-performance-marketing|ru)$ {
#
# root $test_root;
# try_files $uri $uri/ @test_backend;
# }
# location / {
# index index.php;
# try_files $uri $uri/ /index.php$args;
# #try_files $uri $uri/ @test_backend;
# }
location ~ ^/modules/ {
root $common_root;
try_files /dev.clickky.biz/$uri /dev.clickky.biz/$uri/ /test.dev.clickky.biz/$uri /test.dev.clickky.biz/$uri/ @test_backend @dev_backend;
}
location ~ ^/(admin|admin/)$ {
root $dev_root;
try_files $uri $uri/ /index.php$args;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}