html_ruby web.conf.erb

web.conf.erb
<% if @port != node["apache"]["port"] %>
  Listen <%= @port %>
<% end %>

<VirtualHost *:<%= @port %>>
  ServerAdmin webmaster@localhost

  DocumentRoot /var/www/html/web0<%= @web_server_id %>
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/html/web0<%= @web_server_id %>>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

html_ruby web02.conf.erb

web02.conf.erb
Listen 8081

<VirtualHost *:8081>
  ServerAdmin webmaster@localhost

  DocumentRoot /var/www/html/web02
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/html/web02>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

html_ruby web01.conf.erb

web01.conf.erb
Listen 8080

<VirtualHost *:8080>
  ServerAdmin webmaster@localhost

  DocumentRoot /var/www/html/web01
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/html/web01>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

html_ruby vhost.conf.erb

vhost.conf.erb

vhost.conf.erb
<% if @port != 80 -%>
  Listen <%= @port %>
<% end -%>

<VirtualHost *:<%= @port %>>
  ServerAdmin webmaster@localhost

  DocumentRoot /var/www/html/web01
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/html/web01>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

html_ruby vhost.conf.erb

vhost.conf.erb

vhost.conf.erb
<% if @port != 80 -%>
  Listen <%= @port %>
<% end -%>

<VirtualHost *:<%= @port %>>
  ServerAdmin webmaster@localhost

  DocumentRoot <%= @document_root %>
  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory <%= @document_root %>>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
</VirtualHost>

html_ruby httpd.conf.erb

httpd.conf.erb
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers       8
MinSpareServers    5
MaxSpareServers   20
ServerLimit      256
MaxClients       256
MaxRequestsPerChild  4000
</IfModule>

<IfModule worker.c>
StartServers         4
MaxClients         300
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

Listen <%= node["myapache"]["port"] %>

LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule substitute_module modules/mod_substitute.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so

Include conf.d/*.conf

User apache
Group apache

ServerAdmin root@localhost

UseCanonicalName Off

DocumentRoot "/var/www/html"

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_userdir.c>
    UserDir disabled
</IfModule>

DirectoryIndex index.html index.html.var
AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>

TypesConfig /etc/mime.types
DefaultType text/plain

<IfModule mod_mime_magic.c>
    MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined
ServerSignature On
Alias /icons/ "/var/www/icons/"

<Directory "/var/www/icons">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<IfModule mod_dav_fs.c>
    DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback
AddDefaultCharset UTF-8
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl    .crl
AddHandler type-map var

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>
</IfModule>
</IfModule>

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

html_ruby Rails最佳实践の警告をちゃんと考える参考:http://qiita.com/diskshima/items/a19273f14705bbdb3e14

Rails最佳实践の警告をちゃんと考える参考:http://qiita.com/diskshima/items/a19273f14705bbdb3e14

file9.erb
<%= render partial: 'member_names', locals: { members: @members } %>
file8.erb
<%# ローカル変数を使う %>
<%= members.map { |m| m.name } %>
file7.erb
  <%= render patial: 'member_names', locals: { members: @members } %>   <%# 明示的にローカル変数として渡している %>
file6.erb
<%# @members に依存しているけど、このファイルを開くまでは分からない %>
<%= @members.map { |m| m.name } %>
file5.erb
  <%= render partial: 'member_names' %>   <%# ここで暗黙に @members を渡しているのと同じ %>
file4.rb
def show
  @members = Member.all    <%# インスタンス変数に値を設定 %>
end
file3.rb
class member
    :
  def last_name_kana
    last_name.kana
  end
    :
end

member.last_name_kana
file2.rb
member.last_name.kana
file16.rb
class CreateUsers < ActiveRecord::Migration
  def change
    create_table "computer" do |t|
     t.string :name
     t.integer :os_id

     t.timestamps
    end

    add_index :users, :os_id  # <= これですね
  end
end
file15.rb
resources :posts
file14.rb
post 'posts/update_post'

get 'posts/get_post'
file13.rb
get 'posts/get_post'
file12.rb
class Member < ActiveRecord::Base
    :
  # ロジックはモデルの中に書く
  def update_phone_number(phone_number)
    self.is_temporary = true
    self.phone_number = remove_non_digit(phone_number)
    save
  end
    :
end

class MembersController < ApplicationController
    :
  def update_phone_number
    @member = Member.find(params[:id])
    phone_number = phone_number_params[:phone_number]
    @member.update_phone_number(phone_number)
  end
    :
end
file11.rb
class MembersController < ApplicationController
    :
  def update_phone_number
    @member = Member.find(params[:id])

    phone_number = phone_number_params[:phone_number]

    @member.is_temporary = true
    @member.phone_number = remove_non_digit(phone_number)

    @member.save
  end
    :
end
file10.erb
<%= render 'member_names', members: @members %>
file1.erb
<% unless @member.name? %>
  名無しの権兵衛
<% end %>
file0.erb
<% unless @member.name.present? %>
  名無しの権兵衛
<% end %>

html_ruby index.erb

index.erb
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<title>Startup Weekend León</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Startup Weekend muy pronto en tu ciudad">
<meta name="author" content="Gize Bonilla, Ismael G Marín">
<meta property="og:image" content="http://www.swleon.org/images/swleon_facebook.jpg" />
<meta property="og:site_name" content="Startup Weekend León" />
<!-- Le styles -->
<%= bootstrap_assets %>
<link rel="stylesheet" media="screen, projection" type="text/css" href="/application.css">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
      <script src="../assets/js/html5shiv.js"></script>
    <![endif]-->

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="images/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="images/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="images/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="/favicon.ico">
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-42324587-1', 'swleon.org');
  ga('send', 'pageview');
</script>
</head>
<body>
<!-- NAVBAR   ================================================== -->
<%= partial :navigation %>
<!-- Carousel ================================================== -->
<%= partial :carousel %>
<div class="container marketing">
  <!-- ABOUT    ================================================== -->
  <%= partial :about %>
  <!-- GLOBAL    ================================================== -->
  <!-- ORGANIZADORES     ================================================== -->
  <hr class="featurette-divider">
  <%= partial :organizadores %>
  <!-- PATROCINADORES     ================================================== -->
  <hr class="featurette-divider">
  <%= partial :patrocinadores %>

  <!-- FOOTER -->
  <hr class="featurette-divider">

  <footer>
    <p class="pull-right"><a href="#">Regresar al Menú</a></p>
    <p>&copy; 2013 Desarrollado por . &middot; <a href="http://www.twitter.com/igmarin">Ismael Marín</a> & <a href="http://www.twitter.com/xixebombilla">Gize Bonilla</a> &middot;</p>
  </footer>
</div>
<!-- /.container -->
<!-- Le javascript
    ================================================== -->
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="/application.js"></script>
<script src="javascripts/holder.js"></script>
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
</body>
</html>

html_ruby index.html.erb

index.html.erb

index.html.erb
<div class="row">
  <script type="text/javascript">
      $(document).ready(function () {
          var states = document.getElementsByClassName('state_li')

          for(var i = 0; i < states.length; i++) {
            states[i].addEventListener('click', click_state, false);
          }

          function get_parliamentarians(value) { // value = state acronym
              $.ajax({
                  url: "/parliamentarians/parliamentarians_per_state",
                  type: "GET",
                  dataType: "json",
                  data: {"state": value},
                  success: function (response) {
                    console.log("sucesso");
                  },
                  error: function () {
                    console.log("erro");
                  }
              });
          }

          function click_state() {
            var value = $(this).text();

            get_parliamentarians(value.trim());
          }
      });
  </script>

  <div class="small-12 columns">
    <div class="off-canvas-wrap" data-offcanvas>
      <div class="inner-wrap">
        <div class="large-0 pull-0 columns">
          <nav class="top-bar show-for-medium-up" data-topbar>
            <dl class="sub-nav">
            <nav class="top-bar show-for-medium-up" data-topbar>
              <ul class="title-area">
              <li class="name">
                <h1><a href="#">Perfil Parlamentar</a></h1>
              </li>
              <dd><a href="#"><button data-dropdown="drop1" aria-controls="drop1" aria-expanded="false">Estados &raquo;</button></a></dd>
              <dd><a href="#"><button data-dropdown="drop2" aria-controls="drop2" aria-expanded="false">Partidos &raquo;</button></a></dd>
              <!-- <dd><a href="#">Suspended</a></dd>
              <dd><a href="#">Suspended</a></dd> -->
            </dl>
            <ul id="drop1" class="f-dropdown" data-dropdown-content aria-hidden="true" tabindex="-1">
              <ul id="drop" class="[tiny small medium large content]f-dropdown" data-dropdown-content>
              <div style="height:400px;line-height:3em;overflow:scroll;padding:3px;">
                <% @ordened_states.each do |p| %>
                  <li> <a class="state_li"> <%= p.state %> </a> </li>
                <%end%>
              </ul>
            </ul>
            <ul id="drop2" class="f-dropdown" data-dropdown-content aria-hidden="true" tabindex="-1">
              <ul id="drop" class="[tiny small medium large content]f-dropdown" data-dropdown-content>
              <div style="height:400px;line-height:3em;overflow:scroll;padding:3px;">
                <% @ordened_partys.each do |p| %>
                  <li> <%= link_to @selected_party, p.party %> </li>
                <%end%>
              </ul>
            </ul>

          <section class="top-bar-section">
            <!-- Right Nav Section -->
          </section>
        </nav>
        <nav class="tab-bar show-for-small">
          <section class="left-small">
            <a class="left-off-canvas-toggle menu-icon" href="#"><span></span></a>
          </section>
          <section class="middle tab-bar-section">
            <h1 class="title">Offcanvas for Small</h1>
          </section>
        </nav>
        <aside class="left-off-canvas-menu">
          <ul class="off-canvas-list">
            <li><label>Foundation</label></li>
            <li><a href="#">Home</a></li>
            <li><a href="#">About</a></li>
            <li><a href="#">Contact</a></li>
          </ul>
        </aside>
          <%= form_tag parliamentarians_path, :method => 'get' do %>
             <div class="row">
                <div class="small-8">
                  <p><div class="small-8 columns">
                    <%= text_field_tag :search, params[:search], id:"right-label", placeholder: "Nome do Parlamentar" %>
                  </div></p>
                  <div class="small-3 columns">
                    <%= submit_tag "Buscar", :name => nil , class: "button postfix" %>
                  </div>
              </div>
            </div>
          <% end %>
          <% if !params[:search].nil? %>
          <div style="width:930px;height:800px;line-height:3em;overflow:scroll;padding:5px;">
          <ul>
            <% @parliamentarians.each do |p| %>
              <p>
              <center><span><img src="<%= p.url_photo %>"/></span></center>
              <center><b><%= link_to p.name, profile_path(p)%></b></center>
              <li><right>Partido: <%= p.party %></right>
              </p>
            <%end%>
          </ul>
        </div>
        <%end%>
       <a class="exit-off-canvas"></a>
       </div>
     </div>
   </div>
</div>

html_ruby 我的WordPress Nginx设置

我的WordPress Nginx设置

nginx.conf
upstream phpfpm {
	server unix:/var/run/php5-fpm.sock;
}

upstream hhvm {
	server unix:/var/run/hhvm/hhvm.sock;
}

# SSL
ssl_protocols             TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers               ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;
ssl_buffer_size           8k;
spdy_headers_comp         6;

fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache_fpm:30m max_size=1000m;
nginx.erb
server {
	listen 80;
	<% if @use_ssl %>
	listen 443 ssl spdy;
	ssl_certificate ssl/<%= @domain %>/server.crt;
	ssl_certificate_key ssl/<%= @domain %>/server.key;
	<% end %>
	server_name <%= @domain %><% if @also_www %> www.<%= @domain %><% end %>;
	access_log  /var/log/nginx/access.log main;

	root /srv/www/<%= @path %>;
	index index.html index.htm index.php;

	include sites-available/custom/<%= @domain %>;

	location ~ \.(jpe?g|gif|png|css|bmp|js|ico)$ {
		expires 30d;
	}

	location / {
		try_files $uri $uri/ /index.php$is_args$args;
	}

	# redirect server error pages to the static page /50x.html
	#
	error_page   500 502 503 504  /50x.html;
	location = /50x.html {
		root /var/www/nginx-default;
	}

	location ~ /\.ht[a-z]+$ {
		deny all;
	}

	location ~ \.php$ {
		# Set some proxy cache stuff
		fastcgi_cache microcache_fpm;
		fastcgi_cache_key $scheme$host$request_method$request_uri;
		fastcgi_cache_valid 200 5s;
		fastcgi_cache_use_stale updating;
		fastcgi_max_temp_file_size 1M;
		fastcgi_cache_min_uses 3; # Hit a URL 3 times before caching it

		set $no_cache_set  0;
		set $no_cache_get  0;

		set $temp_caching_exemption 0;
		if ($request_method !~ ^(GET|HEAD)$) {
			set $temp_caching_exemption 1;
		}

		if ( $temp_caching_exemption = 1 ) {
			add_header Set-Cookie "_mcnc=1; Max-Age=10; Path=/";
		}

		# Bypass cache if no-cache cookie is set
		if ( $http_cookie ~* "_mcnc" ) {
			set $no_cache_set 1;
			set $no_cache_get 1;
		}

		if ( $http_cookie ~* "comment_author_|wordpress_(?!test_cookie)|wp-postpass_" ) {
			set $no_cache_set 1;
			set $no_cache_get 1;
		}

		# fastcgi_no_cache means "Do not store this proxy response in the cache"
		fastcgi_no_cache $no_cache_set;
		# fastcgi_cache_bypass means "Do not look in the cache for this request"
		fastcgi_cache_bypass $no_cache_get;


		include        /etc/nginx/fastcgi_params;
		fastcgi_index  index.php;
		try_files      $uri =404;

		<% if @hhvm %>
		fastcgi_keep_conn on;
		fastcgi_pass hhvm;
		<% else %>
		fastcgi_pass phpfpm;
		<% end %>
	}

}