For quick testing of Nginx regular expressions, you can use a ready-made docker image. To do this, you need to clone the NGINX-Demos repository: Follow to the "nginx-regex-tester" directory: And launch the container using "docker-compose": And open the next page: http://localhost/regextester.php
When running Nginx as a reverse proxy to Jenkins on CentOS, a 502 error may occur. Nginx error log will be as follows: 2020/05/07 13:32:33 [crit] 9665#9665: *1 connect() to 127.0.0.1:8080 failed (13: Permission denied) while connecting to upstream, client: 18.104.22.168, server: jenkins.artem.services, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8080/", host: "jenkins.artem.services" Solution: Reason SELinux. … Continue reading "FIX ERROR – CentOS+Nginx+Jenkins: 502 Bad Gateway"
When creating an HTTP/HTTPS subscription in AWS SNS, you can observe that the subscription is hanging in the status: "Pending confirmation" SNS to the specified URL makes a POST request in which it sends data in JSON format and expects to receive a key value in response: "SubscribeURL". But if the application does not … Continue reading " AWS SNS – HTTP(S) Subscription: manual confirmation"
For a container with phpMyAdmin, you need to add a variable with an absolute path: The "location" block for Nginx (change the proxy path to yours): Now phpMyAdmin will be available along the path: https://artem.services/phpmyadmin/
Example configuration block for redirecting domain "old.artem.services" to "new.artem.services" app.conf
To enhance cryptography, you must use the Diffie-Hellman parameter file with a length of at least 4096 bits. Let’s create a file like this: Will be added to the Nginx config file: You can use the following service to check: ssllabs.com
Install "fcgiwrap" Deb system: CentOS: Add to autorun and run: backuppc.conf