September 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories

September 2024
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Nginx as reverse proxy for Apache

Setup Nginx as reverse proxy for Apache with Virtualmin support We know that Nginx is more faster than Apache and most of us prefer to replace Apache with Nginx as their web server. Nginx is known to serve faster static content and run with less RAM. As of this writing, Virtualmin supports Apache as its […]

nginx on RHEL 7 with tomcat on Systemd

Tomcat implement multi-instance use systemd centos 7 RHEL 7

rpm -ivh jdk-8u60-linux-x64.rpm

getent group tomcat || groupadd -r tomcat getent passwd tomcat || useradd -r -d /opt -s /bin/nologin tomcat

cd /opt wget http://mirror.nus.edu.sg/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz tar xzf jdk-8u40-linux-i586.tar.gz

mv apache-tomcat-8.0.30 tomcat01 chown -R tomcat:tomcat tomcat01

tar zxvf apache-tomcat-8.0.30.tar.gz mv apache-tomcat-8.0.30 tomcat02 chown -R tomcat:tomcat tomcat02

sed […]

nginx has load balancer

nginx is a high performance web server software. It is a much more flexible and lightweight program than apache.

yum install epel-release

yum install nginx

ifconfig eth0 | grep inet | awk ‘{ print $2 }’

wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u60-b27/jdk-8u60-linux-x64.tar.gz” wget http://mirror.nus.edu.sg/apache/tomcat/tomcat-8/v8.0.30/bin/apache-tomcat-8.0.30.tar.gz tar xzf jdk-8u40-linux-i586.tar.gz mkdir /usr/java/

cd /usr/java/jdk1.8.0_40/ [root@cluster1 java]# […]

Nginx server security configuration

Nginx server security configuration

First, turn off SELinux Security-Enhanced Linux (SELinux) is a Linux kernel feature that provides security policy protection mechanism supports access control. However, SELinux brings additional security and the disproportionate use of complexity, cost is not high

sed -i /SELINUX=enforcing/SELINUX=disabled/ /etc/selinux/config

/usr/sbin/sestatus -v # Check status

Second, the least privilege allowed by […]

Nginx self-signed https and reverse proxy

Nginx self-signed https and reverse proxy

The company’s wiki server and docker private registry in the company’s desktop cloud, since public IP resource constraints, these servers can not be coupled with each public network IP, it can only be accessed through a public IP, so you need to use Nginx Be a reverse proxy to […]

Nginx WEB SERVER RHEL 6

Nginx

Nginx is a fast and lightweight alternative to the sometimes overbearing Apache 2. However, Nginx just like any kind of server or software must be tuned to help attain optimal performance.

The Architecture of Open Source Applications (Volume 2): nginx

nginx (pronounced “engine x”) is a free open source web server written by Igor […]