nginx + php

# apt-get install php php-common php-cli php-fpm Put this into your (virtual) servers nginx config file: … and … into the index line. create a test.php file: restart nginx and test it. Tune php.ini in /etc/php/…

nginx | redirect https://domain to different https://domain without browser cert errors

Standard nginx redirect: server { listen 80; listen 443 ssl; server_name up-eleven.de http://www.domain-a.tld; return 301 https://www.domain-b.tld; } Produces browser ssl errors (wrong cert) cs before executing the redirecting order the https connection is established between your browser and the orig domain. Solution: Run certbot on the orig domain you redirect from: The bot inserts this […]

Handle multiple virtual domains on one debian host | nginx + certbot/letsencrypt

For every domain create a nginx file, put it into /etc/nginx/sites-available and symlinklink it into /etc/nginx/sites/enabled: /etc/nginx/sites-available/my-domain.tld server { listen 80; listen [::]:80; server_name my-domain.tld http://www.my-domain.tld; root /var/www/my-domain.tld; index index.html index.htm; location / { try_files $uri $uri/ =404; } } Create the corresponding dirs and index.htmls (here: /var/www/my-domain.tld) Restart your nginx: Run your certbot That […]

Windows 10 | Uninstall progs from registry

Delete them: HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{KEY2KEY2KEY2} HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\KEYKEYKEY HKCR\Installer\Products\KEYKEYKEY HKLM\SOFTWARE\Wow6432Node\SOMETHING HKLM\SOFTWARE\RegisteredApplications\SOMETHING HKLM\SOFTWARE\Clients\Mail\SOMETHINGifITdidHANDLEmail HKLM\SOFTWARE\WOW6432Node\RegisteredApplications\SOMETHING HKU\.DEFAULT\Software\Clients\Mail\SOMETHINGifITwasAmailCLIENT HKU\S-1-5-18\Software\Clients\Mail\SOMETHINGifITwasAmailCLIENT