View difference between Paste ID: dttKrpzK and Ah9gri1u
SHOW: | | - or go back to the newest paste.
1-
 server {
1+
server {
2-
        listen 80;
2+
	listen 80;
3
4-
        root /var/www;
4+
	...
5-
        index index.php index.php index.htm;
5+
	index index.php index.php index.htm;
6
7-
        server_name mydomain.com www.mydomain.com;
7+
	server_name mydomain.com www.mydomain.com;
8
  ...
9-
            location / {
9+
}
10-
        try_files $uri $uri/ /index.php?q=$uri&$args;
10+
11-
    }
11+
server {
12
	listen 80;
13-
    location ~ \.php$ {
13+
14-
        try_files $uri =404;
14+
	...
15-
        fastcgi_pass unix:/var/run/php5-fpm.sock;
15+
	index index.php index.php index.htm;
16-
        fastcgi_index index.php;
16+
17-
        include fastcgi_params;
17+
	server_name subdomain.mydomain.com www.subdomain.mydomain.com;
18-
    }
18+
  ...
19
}