#!/bin/bash ## # File: # nginx_modsite # Description: # Provides a basic script to automate enabling and disabling websites found # in the default configuration directories: # /etc/nginx/sites-available and /etc/nginx/sites-enabled # For easy access to this script, copy it into the di...
Disabling SELinux in CentOS 7 Configuring Nginx to forward PHP requests to Apache mod_php If you have any questions, please contact me atarulsutilities@gmail.com. You can also post questions in ourFacebook group. Thank you. Disclaimer: Our website is supported by our users. We sometimes ear...
Two simple commands to enable and disable Nginx sites.# Enable nginx site by name nginx-enable-site myproject.com # List all sites that can be enabled nginx-enable-site --list # Run without parameters to select site from menu nginx-enable-site # Disable nginx site by name nginx-disable-...
In conclusion, when you encounter the message “Please enable JavaScript to continue” on a website served by NGINX, it indicates that the server is not properly configured to handle JavaScript files. By configuring NGINX with the appropriatelocationdirective for JavaScript files, you can ensure tha...
2) For Microsoft IIS servers Copy and paste the following into the command line: appcmd set config /section:httpProtocol /allowKeepAlive:true 3) For NGINX servers Keep-Alive is enabled by default in NGINX. SummaryDifficulty: ** Related...
How to enable/disable gzip compression in nginx on a Plesk server - Support Cases - Plesk Knowledge Base
Open the nginx configuration file. 1 1. sudo vim conf/nginx.conf 1. Find our root location,location /. And add an expiration time of 1 hour. 1 1. expires1h; 1. Note that the backend server can define different expiration times for different locations. Or disable the cache completely for...
Enable HTTP/2 Support in Nginx Save the changes in the file and close it. Then check the NGINX’s configuration syntax, if it’s OK, restart the Nginx service. # nginx -t # systemctl restart nginx Next, open a web browser to verify if your website is being served overHTTP/2. ...
This tells NGINX to only enable the TLS 1.2 protocol. Restart NGINX to complete the changes: service nginx restart TOMCAT The configuration file for Tomcat should be in: TOMCAT_HOME/conf/server.xml Tomcat 5 & 6 (Prior to 6.0.38)
NGINX Microsoft IIS 3) For WordPress (or other CMS) Users For WordPress users, the easiest way to enable Gzip compression is by using a caching plugin that supports enabling Gzip. For example, WP Rocket is a caching plugin that automatically enables Gzip compression as soon as you activate ...