Skip to content

Instantly share code, notes, and snippets.

View kazi-shahin's full-sized avatar

Kazi Shahin kazi-shahin

View GitHub Profile
@kazi-shahin
kazi-shahin / laravel-file-permission-apache.md
Created September 21, 2022 12:38 — forked from masdimdev/laravel-file-permission-apache.md
Laravel file permission on apache

Laravel File Permission on Apache

  1. Set the owner & group of file & folder to apache user (www-data)
sudo chown -R www-data:www-data /path/to/your/root/directory
sudo chown -R www-data:www-data /path/to/your/root/directory
  1. Add user to the webserver user group
sudo usermod -a -G www-data ubuntu
@kazi-shahin
kazi-shahin / laravel-file-permission-apache.md
Created September 21, 2022 12:38 — forked from masdimdev/laravel-file-permission-apache.md
Laravel file permission on apache

Laravel File Permission on Apache

  1. Set the owner & group of file & folder to apache user (www-data)
sudo chown -R www-data:www-data /path/to/your/root/directory
sudo chown -R www-data:www-data /path/to/your/root/directory
  1. Add user to the webserver user group
sudo usermod -a -G www-data ubuntu
@kazi-shahin
kazi-shahin / nginx.conf
Created September 13, 2022 06:23 — forked from shivamgpt38/nginx.conf
Nginx configuration for NodeJs+socket.io+let's encrypt
upstream my-domain {
server 127.0.0.1:8080; // nodejs and socketio running on same port. chnage or create new upstream for socket if socket running on different port
}
server {
listen 80;
server_name *.example.com; //change domain
return 301 https://$host$request_uri;
}
@kazi-shahin
kazi-shahin / next_nginx.md
Created July 29, 2021 20:30 — forked from kocisov/next_nginx.md
How to setup next.js app on nginx with letsencrypt