incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <bchesn...@gmail.com>
Subject Re: apache vhost, couchdb vhost and rewrite
Date Sat, 13 Nov 2010 15:57:38 GMT
curl -v http://chrisbuchholz.dk  doesn't work ?

what's the result of this command ? and what are couchdb logs ?

On Sat, Nov 13, 2010 at 2:22 PM, christoffer.buchholz@gmail.com
<christoffer.buchholz@gmail.com> wrote:
> I just tried putting the vhost (both with and without port) in to CouchDB
> via curl, and that way it did show up in Futon, but it still doesnt work.
>
> On Fri, Nov 12, 2010 at 8:53 PM, christoffer.buchholz@gmail.com <
> christoffer.buchholz@gmail.com> wrote:
>
>> I am curious. Shouldnt the added vhost in local.ini turn up in
>> Futon->Configuration? I cant see it there, so maybe - just maybe, it doesnt
>> get "applied". I experienced this with changing the bind_adresse. I had to
>> change it via http PUT before couchdb noticed the change. I believe it is a
>> known bug on Ubuntu?
>>
>>
>> On Fri, Nov 12, 2010 at 8:47 PM, christoffer.buchholz@gmail.com <
>> christoffer.buchholz@gmail.com> wrote:
>>
>>> I first tried changing the vhost entry in couchdb to localhost, didnt
>>> work. Then i changed it back to chrisbuchholz.dk and added
>>> ProxyPreserveHost on to my virtualhost in apache. Didnt work either. Cant
>>> believe no one, out of all the couchdb developers, havent had this problem
>>> them self.
>>>
>>> How would one go about setting up a domain to point to a couchapp of not
>>> this way?
>>>
>>>
>>> On Fri, Nov 12, 2010 at 8:00 PM, Randall Leeds <randall.leeds@gmail.com>wrote:
>>>
>>>> Ok, then. Wrong idea.
>>>>
>>>> I'm not an expert in rewrites and vhosts. I can't remember if the
>>>> CouchDB vhost is keyed off the Host header or something else.
>>>> If apache and couch are on the same box maybe try localhost in the
>>>> CouchDB vhost rule or set the ProxyPreserveHost directive[1] in
>>>> apache.
>>>>
>>>> -Randall
>>>>
>>>> [1]
>>>> http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxypreservehost
>>>>
>>>> On Fri, Nov 12, 2010 at 10:42, christoffer.buchholz@gmail.com
>>>> <christoffer.buchholz@gmail.com> wrote:
>>>> > I just tried removing the port, so my vhost entry in local.ini states
"
>>>> > chrisbuchholz.dk = /chrisbuchholzname/_design/
>>>> chrisbuchholz.name/_rewrite",
>>>> > but that didnt seem to fix it either.
>>>> >
>>>> >
>>>> > On Fri, Nov 12, 2010 at 7:35 PM, Randall Leeds <
>>>> randall.leeds@gmail.com>wrote:
>>>> >
>>>> >> Ill double check later, but I don't remember needing the port number
>>>> in the
>>>> >> CouchDB vhost.
>>>> >> On Nov 12, 2010 8:01 AM, "christoffer.buchholz@gmail.com" <
>>>> >> christoffer.buchholz@gmail.com> wrote:
>>>> >> > Hey guys,
>>>> >> >
>>>> >> > On the CouchDB on my server, I have a CouchApp placed at
>>>> >> > /chrisbuchholzname/_design/chrisbuchholz.name with rewrite-index
at
>>>> >> > _rewrite/. I now want my domain chrisbuchholz.dk to point to
that
>>>> >> CouchApp.
>>>> >> >
>>>> >> > On my server I use apache2 and manage all my domains as virtualhost.
>>>> So I
>>>> >> > have set up a proxy for chrisbuchholz.dk that points it to
the
>>>> CouchDB,
>>>> >> so
>>>> >> > that the CouchDB vhost can grab it. I did it like this:
>>>> >> >
>>>> >> > <VirtualHost 178.79.133.30:80>
>>>> >> > ServerAdmin christoffer.buchholz@gmail.com
>>>> >> > ServerName chrisbuchholz.dk
>>>> >> > ServerAlias www.chrisbuchholz.dk
>>>> >> > ProxyPass / http://localhost:5984/
>>>> >> > ProxyPassReverse / http://localhost:5984/
>>>> >> > ErrorLog /srv/chrisbuchholz/www/chrisbuchholz.dk/logs/error.log
>>>> >> > CustomLog
>>>> >> > /srv/chrisbuchholz/www/chrisbuchholz.dk/logs/access.logcombined
>>>> >> > <Proxy *>
>>>> >> > Order allow,deny
>>>> >> > Allow from all
>>>> >> > </Proxy>
>>>> >> > </VirtualHost>
>>>> >> >
>>>> >> > Then I have added a vhost entry to local.ini:
>>>> >> >
>>>> >> > chrisbuchholz.dk:5984 = /chrisbuchholzname/_design/
>>>> >> > chrisbuchholz.name/_rewrite
>>>> >> >
>>>> >> > But it doesn't work.
>>>> >> > When I access chrisbuchholz.dk, it just gives me CouchDB -
not my
>>>> >> CouchApp.
>>>> >> > (you can try yourself)
>>>> >> >
>>>> >> > What am I missing and what am I doing wrong?
>>>> >> >
>>>> >> >
>>>> >> > Sincerely,
>>>> >> > Christoffer Buchholz
>>>> >>
>>>> >
>>>>
>>>
>>>
>>
>

Mime
View raw message