How to redirect old domain names

Sometimes we need to redirect access to another domain name,For example, when the old domain name is walled。

Some domain name providers provide this service,But the functions are very basic,Only simply match the domain name and then jump,And this jump will lose parameters and other information,Or simply fail to match,Basically unusable。

To redirect the domain name and retain the request parameters,You need to have a dedicated server to accept the request and return the redirect information。This requirement cannot be achieved simply by DNS。

Using a server

Since I have a blog server,[……]

Click link to continue reading...

Cerot + RouterOS builds home VPN

The NAS at my home is actually not very utilizing,I have important data on cloud disk。However, it is still much more convenient to have a media center at home... For example, when watching a movie。Can be downloaded in the background,Then the TV and other devices can read it directly。

I used an old rmbp to make a server,Place next to the router,Direct connection to the network cable,This download can maximize bandwidth utilization。However, as we all know, macOS supports smb services very badly,Recently, taking advantage of a friend's small host,Just use it to create a home lab,Use Prox[……]

Click link to continue reading...

Hestia CP with Docker app

I wrote an article before saying that I Migrate Plesk to Hestia After a period of use,Except for missing some features,Overall it is very stable and practical.。Recently I've been tinkering with some Docker applications,Just found out Hestia not like Please That way you can control and manage docker directly from the UI,of course,due to Hestia The lightweight design architecture itself,We can still easily make it implement Docker App reverse generation,Of course,It really can't be managed Docker service,[……]

Click link to continue reading...

Kotlin/Android detect text encoding

Recently doing Android version of drop-box input method,I had a problem importing the code table。Because the code table of the drop-box input method supports two encoding formats: utf8 and gb18030.,Even my own built-in code table uses a mixture of these two formats.。In Swift or Python,If you use the wrong encoding to decode text,You will receive an error。Use this method,I can easily detect both encodings - first decode with utf8,If an error is reported, try again gb18030. easy and convenient,enough for me。[……]

Click link to continue reading...

If your ISP assign u IPv6 only a prefix but no address

I recently switched Internet provider,The new provider offered me a /48 address prefix,This is different from my previous operators,They mostly use DHCP,Allocate one to you directly IPv6 the address of。Although the meaning of v6's existence is that the address is "infinite",But assigning one can save a lot of configuration trouble.。

This new setup caught me off guard。

the good news is,There are official tutorials。the bad news is,The official tutorial does not work。

This is a bit of a headache,After configuration, no network connection,Even if I manually add a static route to the router to the exit,[……]

Click link to continue reading...