include common upstream server listen 80 root home efog Win server_nam

 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
include common/upstream;
server {
listen 80;
root /home/efog/Win;
server_name wybox.com;
charset utf8;
client_max_body_size 1000m;
location / {
index index.html index.php index.htm;
}
location ~ \.php {
try_files $uri $uri/ =404;
include common/php-fpm;
}
}
server {
listen 80;
root /home/efog/nginx/site0;
server_name google.com;
charset utf8;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
include common/php-fpm;
}
}