Skip to content

Instantly share code, notes, and snippets.

@dkotter
Created January 17, 2015 16:38
Show Gist options
  • Select an option

  • Save dkotter/bb3811ba40565a69f883 to your computer and use it in GitHub Desktop.

Select an option

Save dkotter/bb3811ba40565a69f883 to your computer and use it in GitHub Desktop.
Emmis config
server {
# Determines the port number that nginx will listen to for this
# server configuration. 80 is the default http port.
listen 80;
# Listen for HTTPS requests as well
listen 443 ssl;
# Tells nginx what domain name should trigger this configuration. If
# you would like multiple domains or subdomains, they can be space
# delimited here. See http://nginx.org/en/docs/http/server_names.html
server_name emmis.dev *.emmis.dev;
# Elasticsearch endpoint
#location /es-search {
# rewrite ^/es-search(.*) $1 break;
# proxy_set_header Host $host;
# proxy_pass http://192.168.50.4:9200;
#}
# Tells nginx which directory the files for this domain are located
root /srv/www/emmis;
# Includes a basic WordPress configuration to help with the common
# rules needed by a web server to deal with WordPress properly.
include /etc/nginx/nginx-wp-common.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment