How to Run CGI Script with Nginx
To run CGI scripts with Nginx, you can use the fcgiwrap package. 1. Install Nginx and fcgiwrap 2. Enable and start fcgiwrap 3. Configure…
To run CGI scripts with Nginx, you can use the fcgiwrap package. 1. Install Nginx and fcgiwrap 2. Enable and start fcgiwrap 3. Configure…
You can use a return statement in Nginx to send a plain text response. In your Nginx server entry, add location ~*…
To block bots by User-Agent in Nginx, add the following to the server entry of the website. Restart Nginx To block acces…
On an Nginx server after updating Nginx and ModSecurity, I got the following error [root@localhost ~]# nginx -t nginx: [emerg] “modsecurity_rules_file” directive…
You can add the following headers in your nginx.conf or server entry to improve website security add_header X-Frame-Options sameorigin; add_header X-Content-Type-Options nosniff;…
Angular is a single-page application (SPA) framework. To serve Angular application using Nginx web server, use following configuration. server { listen *:80;…
Here is Drupal 7 server configuration for Nginx with letsencrypt SSL. server { listen 443 ssl http2; ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem; # managed by…
To force SSL (HTTPS) on a website hosted on an Nginx web server, edit server entry for the website, add Method 2…
When accessing PHP files from location block that have different document root specified using alias, i get error No input file specified.…
On a default installation of the Nginx web server, the error pages show the version of Nginx software running on your server.…
Nginx web server support rate-limiting with module ngx_http_limit_req_module. Block WordPress wp-login.php attack To block the WordPress wp-login.php attack, add the following to…
A WordPress website needs to migrate to a different domain, on a new domain site use static HTML pages. On the source…