Configure Nginx Web Server for Alfresco



Configure Nginx Web Server for Alfresco

Configure Nginx Web Server for Alfresco

Configure Nginx Reverse Proxy
1. yum install epel-release
2. yum install nginx
3. edit /etc/nginx/nginx.conf and populate the file
location /share/ {
root /opt/alfresco-community/tomcat/webapps/share/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_pass http://centos81.lan:8080/share/;
#proxy_redirect http:// https://;
}

location /alfresco/ {
root /opt/alfresco-community/tomcat/webapps/alfresco/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_pass http://centos81.lan:8080/alfresco/;
#proxy_redirect http:// https://;
}
4. systemctl restart nginx alfresco
5. firewall-cmd –add-service=http –permanent
6. firewall-cmd –reload
7. setenforce 0
8. Now you can access Alfresco through Nginx
http://centos81.lan/share

Thank You