Skip to content

Instantly share code, notes, and snippets.

@silviupanaite
silviupanaite / laravel_nginx.md
Created May 3, 2017 07:32 — forked from folivares/laravel_nginx.md
Nginx configuration for Laravel 5.1

Nginx Server Blocks configuration to run more than one Laravel 5.1 web-app off of a single Linux server

Prerequisites

  • PHP package: php5-fpm php5-mcrypt php5-mysql
  • Laravel 5.1
  • Nginx 1.8

Default Server Block

@silviupanaite
silviupanaite / cname_check.rb
Created December 11, 2019 12:42 — forked from Maysora/cname_check.rb
Ruby DNS CNAME check
require 'resolv'
url = 'mail.bocistudio.com'
begin
r = Resolv::DNS.open do |dns|
dns.getresource(url, Resolv::DNS::Resource::IN::CNAME)
end
r.name.to_s # => return alias domain
rescue Resolv::ResolvError => e
# handle error
# tailscale under podman on fedora
# tested on Fedora IOT (arm64 and amd64) and Silverblue (amd64).
# ensure the tun module is loaded by default
modprobe run
echo tun > /etc/modules-load.d/tun.conf
# ensure iptables xt_mark module is enabled and loaded
modprobe xt_mark
echo xt_mark > /etc/modules-load.d/xt_mark.conf
# ensure iptables ip6table_filter module is enabled and loaded
modprobe ip6tables_filter