Skip to content

Instantly share code, notes, and snippets.

@daneko
Created March 21, 2012 01:51
Show Gist options
  • Select an option

  • Save daneko/2143576 to your computer and use it in GitHub Desktop.

Select an option

Save daneko/2143576 to your computer and use it in GitHub Desktop.
/etc/nginx/conf.d/* メモ
# /etc/nginx/conf.d/jenkins.conf サンプル
server {
listen 80;
server_name jenkins.3a3k.info;
access_log /var/log/nginx/jenkins.access.log;
# document root
location / {
proxy_pass http://localhost:8080;
}
}
server {
listen 80;
server_name sphinx.3a3k.info;
access_log /var/log/nginx/sphinx.access.log;
location / {
root /var/www/sphinx/build/html;
index index.html;
}
}
server {
listen 80 default;
server_name www.3a3k.info;
access_log /var/log/nginx/localhost.access.log;
location / {
root /var/www/default;
index index.html index.htm;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment