
mkdir -p nginxincludetest
cd nginxincludetest

mkdir -p normal target linked


cat > normal/normal.conf <<CONFIG
# NORMAL
server {
	listen 127.0.0.1:8123;
}
CONFIG

cat > target/linked.conf <<CONFIG
# LINKED
server {
	listen 127.0.0.1:8124;
}
CONFIG

ln -sf {target,linked}/linked.conf



cat > nginx.conf <<CONFIG
pid nginx.pid;
events {
	worker_connections 1;
}
http {
  include normal/*.conf;
  include linked/*.conf;
}
CONFIG

nginx -T -c $PWD/nginx.conf
