Welcome! Log In Create A New Profile

Advanced

Need example of nginx.conf for Tomcat 6 (running Alfresco)

Stefan Scott
May 05, 2010 12:54AM
Hi -

I have recently installed Alfresco on my server, using Tomcat (no
Apache), and I'm able to access Alfresco as follows WITHOUT using nginx:

http://myserver.com:8080/alfresco
http://myserver.com:8080/share


Now, of course, I would like to access Alfresco 3.3 Community Edition
using Tomcat 6, with nginx as the front-end proxy.

I can't figure out how to set up my file nginx.conf correctly!


Currently, I have a section as follows in my nginx.conf file:

server {
listen 80;
server_name .portal1.myserver.com;
root /opt/Alfresco/tomcat/webapps/alfresco/;

access_log off;
rewrite_log on;

location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}

I also did chmod 755 on all files in directory
/opt/Alfresco/tomcat/webapps/alfresco to make sure they're
world-executable.

But, when I point my browser to http://portal1.myserver.com it returns
"HTTP 400 - bad request".

Does anyone know how I should set up nginx.conf so that nginx will work
as a front-end proxy for Tomcat/Alfresco?

Thanks!
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need example of nginx.conf for Tomcat 6 (running Alfresco)

Stefan Scott May 05, 2010 12:54AM

Re: Need example of nginx.conf for Tomcat 6 (running Alfresco)

Ryan Malayter May 05, 2010 08:48AM

Re: Need example of nginx.conf for Tomcat 6 (running Alfresco)

Stefan Scott May 14, 2010 01:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 196
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready