Skip to content

Instantly share code, notes, and snippets.

@imposibrus
Last active November 23, 2016 13:36
Show Gist options
  • Save imposibrus/b8bc0407d43c175f377a to your computer and use it in GitHub Desktop.
Save imposibrus/b8bc0407d43c175f377a to your computer and use it in GitHub Desktop.
config files samples
<VirtualHost *:81>
ServerAdmin vp@ft-ru.ru
DocumentRoot /home/ubuntu/www/ft-ru.ru
ServerName ft-ru.ru
ErrorLog ${APACHE_LOG_DIR}/ft-ru.ru.error.log
CustomLog ${APACHE_LOG_DIR}/ft-ru.ru.access.log common
SetEnv ENV "development"
</VirtualHost>
server {
listen 80;
server_name ft-ru.ru;
location / {
proxy_pass http://127.0.0.1:81;
proxy_redirect http://127.0.0.1:81/ /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}
[program:tochkazreniya]
command=/usr/bin/node bin/www
directory=/home/ubuntu/www/ft-ru.ru
startretries=10
user=ubuntu
stdout_logfile=/home/ubuntu/www/ft-ru.ru/logs/out.log
stderr_logfile=/home/ubuntu/www/ft-ru.ru/logs/err.log
environment=NODE_ENV=production
environment=PORT=3045
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment