sgsinclair / VoyantServer

GNU General Public License v3.0
98 stars 33 forks source link

Need help with configuring voyant inside of tomcat7 using nginx #16

Open pguerr061703 opened 7 years ago

pguerr061703 commented 7 years ago

Can someone please assist me in getting voyant working using nginx and tomcat7 on Ubuntu 16.04 I have created SSL cert keys on the server. copied voyant directory to /var/lib/tomcat7/webapps/voyant

Nginx cat /etc/nginx/sites-available/voyant.vhost

server { listen 80; server_name voyant-test.schooldomain.edu; return 301 https://$server_name$request_uri; }

server { listen 443 ssl; server_name voyant-test.schooldomain.edu; ssl on; ssl_certificate /etc/ssl/certs/voyant.pem; ssl_certificate_key /etc/ssl/private/voyant.key; location /var/www/html { proxy_set_header Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://localhost:8080/voyant; } }

pguerr061703 commented 7 years ago

The error I'm getting is the page is not redirecting properly. image