#!/usr/bin/ruby puts

SunDi3yansyah


puts

App Server, Database App, Web App

Create Sub Domain for NGINX Aka Virtual Host by. SunDi3yansyah

| Comments | Cahyadi Triyansyah Cahyadi Triyansyah

Create Sub Domain for NGINX aka Virtual Host by. SunDi3yansyah

sub domain for nginx by sundi3yansyah https://gist.githubusercontent.com/SunDi3yansyah/966c7164eff435c59f5a/raw/f833b4a05baaf59b1e142ccc4528dfe8e3459436/sub.domain_nginx.conf

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
server {
    server_name sub.domain;
    access_log /usr/share/nginx/html/sub.domain/access.log;
    error_log /usr/share/nginx/html/sub.domain/error.log;
    root /usr/share/nginx/html/sub.domain;
 
    location / {
    root /usr/share/nginx/html/sub.domain;
        index index.php index.htm index.html;
    }
 
    location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
        access_log off;
        expires max;
    }
 
    location ~ .php$ {
        include fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
    }
}
Gak ngerti komen, sudah di sediakan komentar di bawah ^_^
Comments