Nginx one-virtual-host.conf

# Riverside Fortress security configuration
# One site nginx config

# author: Sergey Serov

server {
  listen *:80;
  server_name SITENAME;
  return 301 $scheme://www.SITENAME$request_uri;
}

server {

  listen *:80;
  server_name www.SITENAME;
  root /var/www/html/SITENAME/www;
  access_log /var/www/html/SITENAME/logs/nginx_access.log;
  error_log /var/www/html/SITENAME/logs/nginx_error.log notice;

  # maintenance
  #############

  include /etc/nginx/conf.d/includes/maintenance.conf;
  
  # defense
  #########

  include /etc/nginx/conf.d/includes/defense.conf;

  # drupal locations
  ##################

  include /etc/nginx/conf.d/includes/drupal.conf;

  # static files
  ##############

  include /etc/nginx/conf.d/includes/static.conf;

  # some services
  ###############

  # firewall
  ##########

}

# end configuration