Sha256: 95ae0b3d679b424a1e99ec2e47bb6863a0c351b58fbd4dc1f7ed09458ae1699a

Contents?: true

Size: 876 Bytes

Versions: 30

Compression:

Stored size: 876 Bytes

Contents

raise Nginxtra::Error::InvalidConfig.new("The WordPress partial is currently an untested stub.")

server do
  listen(yield(:port) || 80)
  server_name(yield(:server_name) || "localhost")
  root File.absolute_path(File.expand_path(yield(:root) || "."))
  index "index.php"
  client_max_body_size "50m"

  location "= /favicon.ico" do
    log_not_found "off"
    access_log "off"
  end

  location "= /robots.txt" do
    allow "all"
    log_not_found "off"
    access_log "off"
  end

  location "/" do
    try_files "$uri", "$uri/", "/index.php"
  end

  location "~ \.php$" do
    # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
    include "fastcgi.conf"
    fastcgi_intercept_errors "on"
    fastcgi_pass "unix:/var/run/php-fastcgi/php-fastcgi.socket"
  end

  location "~* \.(js|css|png|jpg|jpeg|gif|ico)$" do
    expires "max"
    log_not_found "off"
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
nginxtra-1.10.1.13 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.10.1.12 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.8.1.12 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.8.0.11 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.8.0.10 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.8.0.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.6.3.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.6.2.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.6.1.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.6.0.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.7.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.6.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.5.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.4.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.3.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.2.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.1.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.0.9 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.4.0.8 templates/partials/nginx.conf/wordpress.rb
nginxtra-1.2.8.8 templates/partials/nginx.conf/wordpress.rb