Nginx, myconf

Ho voluto riscrivere il principale: /etc/nginx/sites-available/myconf

Che ho attivato: /etc/nginx/sites-enabled/myconf

 

server {
  server_name vmweb;
  listen 80;
  listen 443 ssl;
  autoindex off;
  index index.html index.htm index.php doku.php;
  root /var/www;

  keepalive_requests 10;
  keepalive_timeout 60 60;
  ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
  ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;

#  #Enforce https for logins, admin
#  if ($args ~* do=(log|admin|profile)) {
#    rewrite ^ https://$host$request_uri? redirect;
#  }

  # deny access to .htaccess files, if Apache's document root
  # concurs with nginx's one
  #
  location ~ /\.ht {
    deny all;
  }

  include html.conf;
  include dokuwiki.conf;
#  include drupal7.conf; # questo era gia` bypassato
  include 3ns.conf;
#  include 3ns8.conf;
#  include owncloud.conf;
#  include kanboard.conf;
  include scuttle.conf;
  include ampache.conf;
  include tt-rss.conf;

}