Server config below. Startting with Ubuntu 22.04LTS. Install Nginx and set SSL certificates Install Nginx sudo apt install nginx Open firewall ports sudo ufw allow 'Nginx HTTP' Set up Ngi...
Link to source -> postgres-cheatsheet.md PSQL Magic words: psql -U postgres Some interesting flags (to see all, use -h or --help depending on your psql version): -E: will ...
This is an example of a systemd service file for starting a Ruby on Rails app automatically. File location is /etc/systemd/system [Unit]Description=ror-app-nameAfter=network.target [Service]Type=si...
Example Nginx server block including PHP, before SSL setup with Certbot. server {listen 80;listen [::]:80;server_name example.com;root /var/www/example.com;index index.html index.htm index.php; loc...
I moved some old web page data from some MYSQL tables that which had been updated and edited over the years. When diplayed on the new site the strange characters were showing up in the ...