SHARE
TWEET

Untitled

a guest Jun 16th, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cat <<'EOF' > /etc/nginx/sites-available/default
  2. server {
  3.     listen 80 default_server;
  4.     listen [::]:80 default_server;
  5.  
  6.     listen 443 ssl default_server;
  7.     listen [::]:443 ssl default_server;
  8.  
  9.     root /vagrant/webroot;
  10.  
  11.     index index.php;
  12.  
  13.     server_name _;
  14.  
  15.     ssl_certificate /etc/nginx/certs/vagrantbox.crt;
  16.     ssl_certificate_key /etc/nginx/certs/vagrantbox.key;  
  17.  
  18.     location / {
  19.         try_files $uri $uri/ /index.php?$args;
  20.     }
  21.  
  22.     location ~ .php$ {
  23.         try_files $uri =404;
  24.         include fastcgi_params;
  25.         fastcgi_pass unix:/run/php/php${PHP_V}-fpm.sock;
  26.         fastcgi_index index.php;
  27.         fastcgi_intercept_errors on;
  28.         fastcgi_param SCRIPT_FILENAME
  29.         $document_root$fastcgi_script_name;
  30.     }
  31. }
  32. EOF
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top