ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
489 stars 90 forks source link

Acralyzer behind apache with proxypass #65

Closed hannesa2 closed 1 year ago

hannesa2 commented 10 years ago

When I run Acralyzer behind apache with

    ProxyPass /acra http://local-ip:5984 nocanon
    ProxyPassReverse /acra http://local-ip:5984

When I use it

    http://servername/acra/acralyzer/_design/acralyzer/index.html#/dashboard/

I get a unable to connect to couchdb This works perfect:

    http://servername:5984/acralyzer/_design/acralyzer/index.html#/dashboard/

Do you know, where I have to change the db connect ?

halkeye commented 10 years ago

Does it show any errors in your javascript console (F12 in most browsers)?

hannesa2 commented 10 years ago

Sorry no error appear.

I figured out in file service.user.js line 298

        _session = SessionResource.get({}, function(a) {  <---- this line doesn't work
            /* success */
            _processSession(a);
        }, function() {
            alert('Unable to connect to couchdb');
            /* failure */
        });

unfortunately the "alert" doesn't show the connection-url, because I uses acralyzer as an alias I guess here in line 29 it maybe needs my alias

    var SessionResource = $resource('/_session');

but I have to less skills to test

ened commented 9 years ago

Same problem here, Acralyzer simply ignores the CouchDB root Path. (in my case in a sub directory).

agrueneberg commented 9 years ago

I ran into the same problem and submitted a pull request to fix it: #106

Okeanos commented 8 years ago

Uh … I don't suppose this will be fixed anytime soon in the official branch?

agrueneberg commented 8 years ago

Depends on @KevinGaudin. I think it's safe to merge.

halkeye commented 8 years ago

I did a quick review and give it a +1

JusticeRage commented 7 years ago

@agrueneberg Thanks a lot for the patch! It helped me out a lot. I wish this would be merged!

amineDev commented 6 years ago

+1