Showing posts with label nginx. Show all posts
Showing posts with label nginx. Show all posts

Tuesday, August 6, 2019

Create symlink folder

For example we have our folder in /etc/nginx/sites-enabled/example.com
And to make virtual symlink folder here /etc/nginx/sites-available we run this

sudo ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enabled/


Tuesday, November 27, 2018

nginx reload

sudo nginx -t
sudo systemctl restart nginx

Tuesday, September 12, 2017

Thursday, December 22, 2016

Monday, October 3, 2016

Laravel 5.3 Nginx Config

    server {
            listen 80;
            listen [::]:80;

            root /var/www/laravel/public;
            index index.php index.html index.htm;

            server_name my_app.dev;

            location / {
                    try_files $uri $uri/ /index.php?$query_string;
            }
            location ~ \.php$ {
              include snippets/fastcgi-php.conf;
              fastcgi_pass unix:/run/php/php7.0-fpm.sock;
            }

            location ~ /\.ht {
                deny all;
            }