sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx
nginx should now be running, enter http://localhost to test
documents in /usr/share/nginx/html
configuration in /etc/nginx/nginx.conf
logs in /var/log/nginx/access.log
sudo ausearch -c 'nginx' --raw | audit2allow -M my-nginx
sudo semodule -i my-nginx.pp
#disable selinux
setenforce 0
nginx with Docker https://hub.docker.com/_/nginx/
docker pull nginx
docker run --name nginx -d -p 10080:80 nginx
http://localhost:10080/
Setup a reverse proxy:
sudo vi /etc/nginx/conf.d/mynexus.conf
server{ listen 18081; location / { proxy_pass "http://localhost:8081"; } }
systemctl stop nginx
systemctl start nginx
you can now point your maven mirror in settings.xml to point to 18081 and intercept all requests to Nexus
How to embed a Java handler in the loop ?
https://www.nginx.com/resources/wiki/modules/java_handler/
http://nginx-clojure.github.io/
Handlers in Java implement this interface NginxJavaRingHandler
https://github.com/nginx-clojure/nginx-clojure/blob/master/src/java/nginx/clojure/java/NginxJavaRingHandler.java
Ref: quick quide to configure yourdomain.com https://www.godaddy.com/garage/how-to-install-and-configure-nginx-on-centos-7/
nginx as reverse proxy https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
No comments:
Post a Comment