Nginx Server Blocks configuration to run more than one Laravel 5.1 web-app off of a single Linux server
- PHP package: php5-fpm php5-mcrypt php5-mysql
- Laravel 5.1
- Nginx 1.8
# 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 |
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 |