Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 01bc18747be6039d7efa26a7e1671d98 > files > 8

groonga-server-gqtp-3.0.5-1.fc18.x86_64.rpm

worker_processes 1;

# Match this to the file owner of groonga database files if groonga-httpd is
# run as root.
user groonga groonga;

events {
  worker_connections 1024;
}

http {
  include mime.types;
  default_type application/octet-stream;
  sendfile on;
  keepalive_timeout 65;

  # The default groonga database path.
  groonga_database /var/lib/groonga/db/db;

  # Create a groonga database automatically if the groonga database doesn't
  # exist.
  #
  # Note that this option is danger when worker_processes is greater than 1.
  # Because one or more worker processes may create the same groonga database
  # at the same time. If you can create a groonga database before running
  # groonga-httpd, you should do it.
  groonga_database_auto_create on;

  server {
    listen 10041;
    server_name localhost;

    location /d/ {
      groonga on;
      # You can custom database path.
      # groonga_database /path/to/groonga/db;
    }

    location / {
      root /usr/share/groonga/html/admin;
      index index.html;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
      root html;
    }
  }
}