/root/ruby/a
/root/ruby/b
/root/ruby/c
/etc/nginx/nginx.conf
配置如下user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
server {
listen 3001;
server_name a.zyythsx.com;
}
server {
listen 3002;
server_name b.zyythsx.com;
}
server {
listen 3003;
server_name c.zyythsx.com;
}
}
请问接下来要如何做? nginx 要怎么配置?配置好 nginx 后,要怎么启动这些 rails 项目