Categories
Solution

Install Photo Viewer on Windows Server

How to install Windows Photo Viewer on Windows Server 2016 or Windows Server 2019 VPS: https://www.windowsworkstation.com/win2016-2019/5-4-installing-windows-photo-viewer/

Categories
Solution

How to enable image thumbnails on Windows Server

If your Windows Server VPS is not showing image thumbnails in folders, here is how to make it show photo thumbnails instead of just icons.

Go to Control Panel -> Folder Options -> View tab, make sure that “Always show icons, never thumbnails” is unchecked.

Categories
Tutorial

How to get visitor ip on cPanel NGINX Reverse Proxy with PHP

If you are using cPanel NGINX Reverse Proxy setup you may notice PHP $_SERVER['REMOTE_ADDR'] is returning server main IP address instead of visitor IP address.

To get visitor IP address use $_SERVER['HTTP_X_REAL_IP']

Source: https://stackoverflow.com/questions/44145688/remote-addr-ip-from-user-instead-of-nginx-reverse-proxy-server

Categories
Tutorial

How to edit Windows 11 HOSTS file

How to edit the hosts file on Windows 11: https://websiteforstudents.com/how-to-edit-windows-11-hosts-file/

In short, open Windows Terminal (Admin) or Command Prompt in Administrator Mode and type:

notepad.exe c:\Windows\System32\Drivers\etc\hosts