Skip to content

Instantly share code, notes, and snippets.

@jewishmoses
Last active July 3, 2020 14:24
Show Gist options
  • Save jewishmoses/e8491aa36d685fb4fabd0ab330656093 to your computer and use it in GitHub Desktop.
Save jewishmoses/e8491aa36d685fb4fabd0ab330656093 to your computer and use it in GitHub Desktop.

Revisions

  1. jewishmoses revised this gist Jul 3, 2020. No changes.
  2. jewishmoses revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.com
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ server {
    server_name example.com;

    location / {
    try_files $uri $uri/ =404;
    try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
  3. jewishmoses revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.com
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    server {
    listen 80;
    root /var/www/example.com/website;
    root /var/www/example.com/website/public;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name example.com;

  4. jewishmoses revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.com
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    server {
    listen 80;
    root /var/www/example.com/html;
    root /var/www/example.com/website;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name example.com;

  5. jewishmoses revised this gist Jul 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion example.com
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    server {
    listen 80;
    root /var/www/html;
    root /var/www/example.com/html;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name example.com;

  6. jewishmoses created this gist Jul 3, 2020.
    19 changes: 19 additions & 0 deletions example.com
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    server {
    listen 80;
    root /var/www/html;
    index index.php index.html index.htm index.nginx-debian.html;
    server_name example.com;

    location / {
    try_files $uri $uri/ =404;
    }

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
    }

    location ~ /\.ht {
    deny all;
    }
    }