Skip to content

Instantly share code, notes, and snippets.

@sakirsensoy
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save sakirsensoy/a6fb6c73eb664f27a6ad to your computer and use it in GitHub Desktop.

Select an option

Save sakirsensoy/a6fb6c73eb664f27a6ad to your computer and use it in GitHub Desktop.

Revisions

  1. sakirsensoy revised this gist Sep 1, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions example.com
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    server {
    listen 80;
    server_name onlineislemler.turktrust.dev-pstv.com;
    root /home/vagrant/Code/turktrust.com/onlineislemler/public;
    server_name example.com;
    root /home/vagrant/Code/example.com/public;

    index index.html index.htm index.php;

    @@ -15,7 +15,7 @@ server {
    location = /robots.txt { access_log off; log_not_found off; }

    access_log off;
    error_log /var/log/nginx/onlineislemler.turktrust.dev-pstv.com-error.log error;
    error_log /var/log/nginx/example.com-error.log error;

    error_page 404 /index.php;

  2. sakirsensoy created this gist Sep 1, 2014.
    34 changes: 34 additions & 0 deletions example.com
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    server {
    listen 80;
    server_name onlineislemler.turktrust.dev-pstv.com;
    root /home/vagrant/Code/turktrust.com/onlineislemler/public;

    index index.html index.htm index.php;

    charset utf-8;

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

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt { access_log off; log_not_found off; }

    access_log off;
    error_log /var/log/nginx/onlineislemler.turktrust.dev-pstv.com-error.log error;

    error_page 404 /index.php;

    sendfile off;

    location ~ \.php$ {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    include fastcgi_params;
    }

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