Skip to content

Instantly share code, notes, and snippets.

@minakolta
minakolta / curl.sh
Created June 26, 2013 09:20
CURL request benchmark
curl -w '\nLookup:\t%{time_namelookup}\nConnect :\t%{time_connect}\nPreTrans:\t%{time_pretransfer}\nStartTeans:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null -s http://yourdomain.com
@minakolta
minakolta / apache_local_access.apacheconf
Created May 29, 2013 14:02
Apache listen to localhost and different port
Listen 127.0.0.1:8080
@minakolta
minakolta / curl.sh
Created May 29, 2013 13:51
Curl call for checking nginx ,apache and Ruby on rails settings
curl -I -k http://yourdomain.com/
curl -I -k http://ror.yourdomain.com/
@minakolta
minakolta / ror.yourdomain.nginxconf
Created May 29, 2013 13:46
Ruby on rails Nginx configuration
upstream roryourdomain {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name ror.yourdomain.com;
gzip on;
location / {
@minakolta
minakolta / yourdomain.nginxconf
Last active December 17, 2015 20:48
Apache config for nginx - sample
upstream yourdomain {
server 127.0.0.1:8080; #static IP or 127.0.0.1 And Apache port
}
server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name yourdomain.com;
server_name_in_redirect off;
location / {
@minakolta
minakolta / nginx.conf - sample.nginxconf
Last active December 17, 2015 20:19
Nginx configurations sample
user apache apache;
worker_processes 4; #cpu cores
pid /var/run/nginx.pid;
events {
worker_connections 768;
# multi_accept on;
}
http {
@minakolta
minakolta / nginxinstall.sh
Last active December 17, 2015 20:19
Install nginx centos
yum install nginx