Linux

How to Set Response Headers in Nginx on Debian

Add Header Using the Nginx add_header directive can lead to duplicate header entries. Consider the following configuration file: server { ... location = /ok { add_header Content-Type application/json; return 200 '{"result":"ok"}'; } } For me this resulted in the following response: $ curl -iI https://api.primesite.dev/ok HTTP/1.1 200 OK Date: Sat, 10 Oct 2020 03:40:20 GMT Content-Type: application/octet-stream Content-Type: application/json Content-Length: 15 Notice the duplicate Content-Type headers above. The first one with the value of “application/octet-stream” comes from my main nginx.

How to Install the latest Firefox on Suse

Update Update the current system. $ sudo zypper refresh Repository 'MEGAsync' is up to date. Repository 'Packman Repository' is up to date. Repository 'openSUSE-Leap-15.1-1' is up to date. Repository 'Online updates for openSUSE Leap:15.1 (standard)' is up to date. Repository 'Non-OSS Repository' is up to date. Repository 'Main Repository' is up to date. Repository 'Main Update Repository' is up to date. Repository 'Update Repository (Non-Oss)' is up to date. Repository 'snappy' is up to date.

What to do after installing openSUSE Leap 15.1

This guide serves as a reminder for me when I go to install SUSE again. I am not going to show how to install it, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do JavaScript and Python development. My system Asus x86_64 Grub2 Kernel 4.

What to do after installing Ubuntu 19.10

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.

What to do after installing Ubuntu 19.04

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.

What to do after installing Ubuntu 18.10

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.

What to do after installing Ubuntu 17.10

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.

What to do after installing Ubuntu 17.04

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.

Lenovo Yoga Ultrabook SSD Tweaks

My Lenovo Yoga 2 Pro 13 is a wonderful machine and I want to take care of the solid state device a.k.a. “hard-drive”. Basically I want to reduce unnecessary writes, for example by configuring the tmp dir to reside in memory. System used: Grub | Linux | GNU | Debian | Ubuntu Ignore Access Time Use the noatime flag to tell the OS not to update the journal access time for files or directories.

What to do after installing Ubuntu 16.04

This guide serves as a reminder for me when I go to install Ubuntu again. I am not going to show how to install Ubuntu, that is available all over the net. What I will describe is what I did after install to get my workstation back up and running with what I need to do Python development. For me, a sub-average long-time software developer, Ubuntu is a great operating system.