Blog - //.nkotov
  • Home
  • Tags
  • twrite
  • console
Sign in Subscribe
Nick

Nick

Hey 👋 My name is Nikolay, i live in Ukraine. I develop websites, administer servers on Linux and many other interesting things! This site serves as my calling card to get acquainted with my studies.
Ukraine
http://nkotov.net
Nginx – file path encryption
NGINX

Nginx – file path encryption

There was a task to set up encryption in the links of paths to media files for placing movies on the site. We use nginx for this: rewrite /([a-zA-Z0-9_\-]+)/([0-9]+)/(.+)\.mp4$ /$3.mp4?md5=$1&time=$2; location / { secure_link $arg_md5,$arg_time; secure_link_md5 SECRET_
26 Dec 2023 1 min read
Create MySQL Database
MySQL

Create MySQL Database

Connect to the MySQL server from the command line as root: mysql -u root -p Create MySQL Database Use the following syntax to create a database in MySQL: CREATE DATABASE name_base; Create a new user: GRANT ALL PRIVILEGES ON name_base.* TO name_user@localhost IDENTIFIED BY 'PASSWORD&
26 Dec 2023 1 min read
Example bash script fro status server and website
Bash

Example bash script fro status server and website

Here is an example of a simple bash script that can be used to check the status of a server: #!/bin/bash # Define the server address server=http://example.com # Use the curl command to check the server's HTTP response code response=$(curl -s -o /dev/null -w
26 Dec 2023 1 min read
← Newer Posts Page 2 of 2
Blog - //.nkotov © 2026
  • Donates
Powered by Ghost