wkoehn

laragon site

Mar 10th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.07 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen 443 ssl;
  4.     server_name example.local *.example.local;
  5.     root "C:/laragon/www/example/";
  6.    
  7.     index index.html index.htm index.php;
  8.  
  9.     location / {
  10.         try_files $uri $uri/ /index.php$is_args$args;
  11.         autoindex on;
  12.     }
  13.    
  14.     location ~ \.php$ {
  15.         include snippets/fastcgi-php.conf;
  16.         fastcgi_pass php_upstream;     
  17.         #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  18.     }
  19.  
  20.     # Enable SSL
  21.     ssl_certificate "C:/laragon/etc/ssl/laragon.crt";
  22.     ssl_certificate_key "C:/laragon/etc/ssl/laragon.key";
  23.     ssl_session_timeout 5m;
  24.     ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  25.     ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
  26.     ssl_prefer_server_ciphers on;
  27.    
  28.    
  29.     charset utf-8;
  30.    
  31.     location = /favicon.ico { access_log off; log_not_found off; }
  32.     location = /robots.txt  { access_log off; log_not_found off; }
  33.     location ~ /\.ht {
  34.         deny all;
  35.     }
  36. }
  37.  
  38. # This file is auto-generated.
  39. # If you want Laragon to respect your changes, just remove the [auto.] prefix
Advertisement
Add Comment
Please, Sign In to add comment