as you know you should have nginx installed on your server.
-
open up a config file for carbon in
/etc/nginx/conf.d/
directory. i will call itcarbon.conf
vim /etc/nginx/conf.d/carbon.conf
-
clone the carbon project to directory which you choose. i prefer to use
/var/
cd /var && git clone https://github.com/shabane/carbon.git
-
create the configuration for the server.
server {
listen 80;
root /var/carbon/docs;
index index.html;
server_name carbon.ir; # use your server name or leave it as comment.
location ~ / {
try_files $uri
rewrite /* $uri.html;
}
}
note that i use my domain for it, absolutly you should use yours to work.