From c4dcb39b8cb9e314f234375e1f210acb823e6142 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 20 Aug 2015 20:47:18 +0300 Subject: [PATCH] nginx: remove the neverused vhost --- ...vhost_which_turns_http_to_https_DO.NOT.USE | 70 ------------------- 1 file changed, 70 deletions(-) delete mode 100644 etc/nginx/sites-enabled/.untested_vhost_which_turns_http_to_https_DO.NOT.USE diff --git a/etc/nginx/sites-enabled/.untested_vhost_which_turns_http_to_https_DO.NOT.USE b/etc/nginx/sites-enabled/.untested_vhost_which_turns_http_to_https_DO.NOT.USE deleted file mode 100644 index 9353dae9..00000000 --- a/etc/nginx/sites-enabled/.untested_vhost_which_turns_http_to_https_DO.NOT.USE +++ /dev/null @@ -1,70 +0,0 @@ -server { - - # default_server from default vhost must exist somewhere! - listen 80; - listen [::]:80; - - server_name vhost.example.org; - return 301 https://$server_name$request_uri; - } - - server { - listen 443; - listen [::]:443; - - root /var/www/vhostdir; - index index.php index.html index.htm; - - # vhost address - server_name vhost.example.org; - - # SSL - #ssl_certificate /etc/nginx/ssl/nginx.crt; - #ssl_certificate_key /etc/nginx/ssl/nginx.key; - - location / { - # First attempt to serve request as file, then - # as directory, then fall back to displaying a 404. - try_files $uri $uri/ =404; - autoindex on; - } - - # Userdir - #ilocation ~ ^/~(.+?)(/.*)?$ { - # alias /home/$1/public_html$2; - # index index.html index.htm; - # autoindex on; - #} - - - #error_page 404 /404.html; - - # redirect server error pages to the static page /50x.html - # - #error_page 500 502 503 504 /50x.html; - #location = /50x.html { - # root /usr/share/nginx/html; - #} - - # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 - # - location ~ \.php$ { - fastcgi_split_path_info ^(.+\.php)(/.+)$; - # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini - # - # # With php5-cgi alone: - # fastcgi_pass 127.0.0.1:9000; - # # With php5-fpm: - fastcgi_pass unix:/var/run/php5-fpm.sock; - fastcgi_index index.php; - #include fastcgi_params; - include fastcgi.conf; - } - - # deny access to .htaccess files, if Apache's document root - # concurs with nginx's one - # - location ~ /\.ht { - deny all; - } -}