sbgrid / data-capture-module

5 stars 4 forks source link

403 - Forbidden: allow Dataverse to talk to DCM #10

Open pdurbin opened 8 years ago

pdurbin commented 8 years ago

vagrant up got my DCM up and running but post-installation I wanted to open it up so that I could communicate with it from Dataverse without "403 - Forbidden" errors.

I did something like this (Dataverse was on 10.0.2.2 for whatever reason):

[root@uiswhlpt2614019 ~]# cd /etc/lighttpd
[root@uiswhlpt2614019 lighttpd]# cp -a lighttpd.conf lighttpd.conf.orig
[root@uiswhlpt2614019 lighttpd]# vi lighttpd.conf
[root@uiswhlpt2614019 lighttpd]# diff lighttpd.conf.orig lighttpd.conf
10c10
< $HTTP["remoteip"] !~ "10.0.10.173|127.0.0.1" {

---
> $HTTP["remoteip"] !~ "10.0.2.2|10.0.10.173|127.0.0.1" {
[root@uiswhlpt2614019 lighttpd]# 
[root@uiswhlpt2614019 lighttpd]# /etc/init.d/lighttpd restart

See also FRONTEND_IP in this repo:

pameyer commented 7 years ago

This is a symptom of insufficient documentation for how to use the ansible role (and potentially with how I'm handling ansible template variables within vagrant).

pameyer commented 7 years ago

Installation docs should cover this now.

pdurbin commented 7 years ago

Where is this mentioned in the docs?