Hi,
I tried to follow that tuts, here the output of my cat /etc/nginx/vhosts/caffeh.com
server {
error_log /var/log/nginx/vhost-error_log warn;
listen 37.59.29.104:80;
listen [::]:80;
server_name caffeh.com www.caffeh.com;
access_log /usr/local/apache/domlogs/caffeh.com-bytes_log bytes_log;
access_log /usr/local/apache/domlogs/caffeh.com combined;
root /home/caffeh/public_html;
#location / {
location ~..(3gp|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|html|htm|txt|js|css|exe|zip|tar|r$
expires 1M;
try_files $uri @backend;
}
location / {
error_page 405 = @backend;
add_header X-Cache "HIT from Backend";
proxy_pass http://37.59.29.104:8081;
include proxy.inc;
include microcache.inc;
}
location @backend {
internal;
proxy_pass http://37.59.29.104:8081;
include proxy.inc;
include microcache.inc;
}
location ~ .*.(php|jsp|cgi|pl|py)?$ {
proxy_pass http://37.59.29.104:8081;
include proxy.inc;
include microcache.inc;
}
location ~ /.ht {
deny all;
}
}
cat /home/caffeh/public_html/forum/config.json
{
"base_url": "http://caffeh.com/",
"port": "4567",
"use_port": false,
"secret": "62914b18-6014-443b-85cc-124f9362417d",
"bind_address": "localhost",
"database": "redis",
"redis": {
"host": "127.0.0.1",
"port": "6379",
"password": "hidden psw",
"database": "0"
},
"bcrypt_rounds": 12,
"upload_path": "/public/uploads",
"relative_path": ""
}
I am willing to have my forum at http://forum.caffeh.com in the root ( www.caffeh.com ) I will install docpad as blog / portal
so far, it works only with port: http://forum.caffeh.com:4567/