I write it as my memorandum.
You don't have to get a domain. If you are not particular about your domain. It is recommended that you experience the explanation of the DNS mechanism from the explanation of the registrar, the name server in practice, and the DNS setting because it is important knowledge for isolating troubles. I've seen several cases where a web designer who has no experience or knowledge about infrastructure makes a mistake in DNS switching in a case that he undertook after independence.
mochikoAsTech's book is very easy to understand, so I recommend it. Getting Started with DNS-From Basics to Troubleshooting-Revised 2nd Edition
I use other registrars because Name.com doesn't like tedious confirmations and confusing pop-ups.
** Sakura Rental Server ** has different prices depending on the function. This time, we will also work with SSH connection, so it is necessary to work with standard or higher. Standard plan 524 yen / month is used. The initial cost is 1048 yen, and the usage fee for 2 months will be charged for the first time. If there is a coupon code, this area may be relaxed or the free period may be extended. Coupon codes are available at free seminars and events.
Immediately proceed to Sakura Rental Server ** Application Page **.
Make a contract with the following contents.
plan | Standard |
Initial domain | Arbitrary string |
Own domain | Contract only for rental server |
Check the detailed procedure at ** [Startup] ① Let's rent a rental server **
Setting method Web application firewall (WAF) settings
Setting method [Shared SSL] Setting method About certificate renewal Since the initial domain is a shared domain, it will be updated automatically on the Sakura side. In the case of the original domain, it is updated for 90 days, so update it yourself from the control panel as appropriate.
If http (port 80) can be connected, set the redirect to https (port 443). Setting method If encryption (SSL) is enabled, I want to lead to the encrypted page
Even if you have your own domain, you can apply for Free SSL (Let's Encrypt) from Sakura's control panel. To supplement the quality of the SSL certificate, you can select it according to your purpose. Occasionally, it is easy to judge that Let's Encrypt is not sloppy, but I think that it should be judged for the purpose. The purpose of this time is to encrypt communication in a personal verification environment. It is not a proof of the existence of the organization. There is no change in the encryption strength, so there is no problem with Let's Encrypt. Click here for details Sakura Knowledge Let's know again, what is an SSL server certificate? (2nd)
Make a backup as it may be set irregularly. It's cheap, but it's convenient to have backup, snapshot, and staging environments.
Setting method [Backup & Staging] Backup procedure
Normally, the directory is ./www
of the website, but I want to make a backup of python, so I create a backup setting of ./local
with additional settings and create a snapshot. You don't have to make a schedule. It's just used as a restore point for construction mistakes. I want to restore the file directly under it to the state before work, so I use ./
as a whole
I will describe it for those who are new to infrastructure. If you don't know the directory structure when backing up, ssh and check. You cannot see all directories from Sakura's control panel.
Connect with Terminal for Mac, Command Pront or PowerShell for Win. Connect with a common ssh connection command. Login is a server account, not a member ID.
** Example: When the initial domain name is hogework **
ssh [email protected]
The password is the hogework password.
The main commands used are
Remember it because it's about cd, ls, rm, mkdir.
After logging in
Use ls -a -l
to see a complete list of directories.
Then, in addition to www
, you can see MailBox
db`` log
local
. It is easy to rewind if you take a snapshot of the required directory with snapup.
Postscript-- I can run Murikuri python3, but I stopped because it was impossible (bitter smile)
Recommended Posts