Created
March 6, 2012 13:27
-
-
Save fabianoalmeida/1986268 to your computer and use it in GitHub Desktop.
Nginx Configuration
This file contains hidden or 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
#user nobody; | |
worker_processes 1; | |
error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /usr/local/lib/ruby/gems/1.9.1/gems/passenger-3.0.7; | |
passenger_ruby /usr/local/bin/passenger-ruby; | |
include mime.types; | |
default_type application/octet-stream; | |
log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
'$status $body_bytes_sent "$http_referer" ' | |
'"$http_user_agent" "$http_x_forwarded_for"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 80; | |
server_name ticketer.hsi.scmba.com.br; | |
#access_log /var/log/ticketer.hsi.scmba.com.br.log main; | |
root /var/www/Ticketer/current/public; | |
error_page 500 502 503 504 /50x.html; | |
passenger_enabled on; | |
} | |
# another virtual host using mix of IP-, name-, and port-based configuration | |
# | |
#server { | |
# listen 8000; | |
# listen somename:8080; | |
# server_name somename alias another.alias; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
# HTTPS server | |
# | |
#server { | |
# listen 443; | |
# server_name localhost; | |
# ssl on; | |
# ssl_certificate cert.pem; | |
# ssl_certificate_key cert.key; | |
# ssl_session_timeout 5m; | |
# ssl_protocols SSLv2 SSLv3 TLSv1; | |
# ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP; | |
# ssl_prefer_server_ciphers on; | |
# location / { | |
# root html; | |
# index index.html index.htm; | |
# } | |
#} | |
} |
This file contains hidden or 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
### sudo chmod u (first) | g (group) | o (other) | a (all) +x (execution) | +w (write) | +r (read) <filename> | |
### sudo chmod 7(all => rwx)5(read and execution)4(read) <filename> | |
### in /usr/local/bin/ | |
#!/bin/sh | |
export LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2 | |
exec "/usr/local/bin/ruby" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment