Ezref Info How To Setup Alfresco With Nginx As The Frontend
Ezref Info How To Setup Alfresco With Nginx As The Frontend
The aim here is to block access to port 8080 and 8443 from public internet yet retain the original
Alfresco configuration.
So here it is:
1] Install Nginx
2] Download Alfresco
sudo wget http://dl.alfresco.com/release/community/build-4003/alfresco-community-4.0.d-installer-
linux-x64.bin
3] Make it executable
sudo vi alfresco.ezref.info
7] Add the following to the site file
server {
listen 80;
server_name alfresco.ezref.info;
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
proxy_set_header X-Forwarded-Server $host;
}
}
On the /etc/nginx/site-available/<sitename>, Add the following lines within the Server tag which
listens on port 443.
server {
listen 443;
server_name alfresco.ezref.info;
ssl on;
ssl_certificate /etc/ssl/certs/alfresco.ezref.info.crt;
ssl_certificate_key /etc/ssl/private/alfresco.ezref.info.key;
rewrite ^/$ /share;
location / {
root /opt/alfresco-4.0.d/tomcat/webapps/share/;
proxy_pass https://localhost:8443;
proxy_set_header X-Real-IP $remote_addr;
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com
proxy_set_header host $host;
}
}
Convert web pages and HTML files to PDF in your applications with the Pdfcrowd HTML to PDF API Printed with Pdfcrowd.com