Last active
November 23, 2016 13:36
-
-
Save imposibrus/b8bc0407d43c175f377a to your computer and use it in GitHub Desktop.
config files samples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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