You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Hugues Dubois <hu...@gmail.com> on 2010/03/09 11:53:54 UTC
[Newbie] -- Couchdb on port 80 with couchdb user
Hi,
I'm installing couchdb from source like this
http://books.couchdb.org/relax/appendix/installing-from-source
But, i have a problem to start couchdb on port 80 with a couchdb user.
If couchdb is started with root user, couchdb listen port 80 with no
problem but if i start it with couchdb user, the couchdb server does
not listen port 80.
Thanks for help.
Hugues
--
Hugues Dubois
Développeur Web / Intégrateur de solution Open Source
Tél. : +33 (0)6 22 03 68 92
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Noah Slater <ns...@tumbolia.org>.
It will be a permissions problem.
Please check the couchdb user has write access to /usr/loca/var/lib/couchdb and /usr/local/var/log/couchdb or follow the instructions in the troubleshooting guide.
http://wiki.apache.org/couchdb/Troubleshooting
On 9 Mar 2010, at 10:53, Hugues Dubois wrote:
> Hi,
>
> I'm installing couchdb from source like this
> http://books.couchdb.org/relax/appendix/installing-from-source
>
> But, i have a problem to start couchdb on port 80 with a couchdb user.
> If couchdb is started with root user, couchdb listen port 80 with no
> problem but if i start it with couchdb user, the couchdb server does
> not listen port 80.
>
> Thanks for help.
>
> Hugues
>
> --
> Hugues Dubois
> Développeur Web / Intégrateur de solution Open Source
> Tél. : +33 (0)6 22 03 68 92
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Hugues Dubois <hu...@gmail.com>.
sorry I mean, this solution works well
2010/3/9 Hugues Dubois <hu...@gmail.com>:
> Yes,
>
> I choose the iptables solution and for MacOS X use :
> sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
>
> I work fine
>
> 2010/3/9 Alan Bell <al...@theopenlearningcentre.com>:
>> or just use an iptables rule set by root
>> |iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
>>
>> running couchdb on 8080 as couchuser.
>>
>> IPtables should be less processing and latency than a proxy
>>
>> Alan.
>>
>> |Nils Breunese wrote:
>>> Jo Giraerts wrote:
>>>
>>>> Users are not permitted to start services on privileged ports (<1024).
>>>
>>> That's right. Either you'll need to start CouchDB as root or run a
>>> reverse proxy on port 80 that proxies to CouchDB running on a higher
>>> port.
>>>
>>> Some pointers on setting up a reverse proxy for CouchDB:
>>>
>>> http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy
>>> http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy
>>>
>>> Nils.
>>>
>>> De informatie vervat in deze e-mail en meegezonden bijlagen is
>>> uitsluitend bedoeld voor gebruik door de geadresseerde en kan
>>> vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging,
>>> verspreiding en/of verstrekking van deze informatie aan derden is
>>> voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste
>>> en volledige overbrenging van de inhoud van een verzonden e-mail, noch
>>> voor tijdige ontvangst daarvan.
>>
>>
>
>
>
> --
> Hugues Dubois
> Développeur Web / Intégrateur de solution Open Source
> Tél. : +33 (0)6 22 03 68 92
>
--
Hugues Dubois
Développeur Web / Intégrateur de solution Open Source
Tél. : +33 (0)6 22 03 68 92
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Hugues Dubois <hu...@gmail.com>.
Yes,
I choose the iptables solution and for MacOS X use :
sudo ipfw add 100 fwd 127.0.0.1,8080 tcp from any to any 80 in
I work fine
2010/3/9 Alan Bell <al...@theopenlearningcentre.com>:
> or just use an iptables rule set by root
> |iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
>
> running couchdb on 8080 as couchuser.
>
> IPtables should be less processing and latency than a proxy
>
> Alan.
>
> |Nils Breunese wrote:
>> Jo Giraerts wrote:
>>
>>> Users are not permitted to start services on privileged ports (<1024).
>>
>> That's right. Either you'll need to start CouchDB as root or run a
>> reverse proxy on port 80 that proxies to CouchDB running on a higher
>> port.
>>
>> Some pointers on setting up a reverse proxy for CouchDB:
>>
>> http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy
>> http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy
>>
>> Nils.
>>
>> De informatie vervat in deze e-mail en meegezonden bijlagen is
>> uitsluitend bedoeld voor gebruik door de geadresseerde en kan
>> vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging,
>> verspreiding en/of verstrekking van deze informatie aan derden is
>> voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste
>> en volledige overbrenging van de inhoud van een verzonden e-mail, noch
>> voor tijdige ontvangst daarvan.
>
>
--
Hugues Dubois
Développeur Web / Intégrateur de solution Open Source
Tél. : +33 (0)6 22 03 68 92
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Alan Bell <al...@theopenlearningcentre.com>.
or just use an iptables rule set by root
|iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080
running couchdb on 8080 as couchuser.
IPtables should be less processing and latency than a proxy
Alan.
|Nils Breunese wrote:
> Jo Giraerts wrote:
>
>> Users are not permitted to start services on privileged ports (<1024).
>
> That's right. Either you'll need to start CouchDB as root or run a
> reverse proxy on port 80 that proxies to CouchDB running on a higher
> port.
>
> Some pointers on setting up a reverse proxy for CouchDB:
>
> http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy
> http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy
>
> Nils.
>
> De informatie vervat in deze e-mail en meegezonden bijlagen is
> uitsluitend bedoeld voor gebruik door de geadresseerde en kan
> vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging,
> verspreiding en/of verstrekking van deze informatie aan derden is
> voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste
> en volledige overbrenging van de inhoud van een verzonden e-mail, noch
> voor tijdige ontvangst daarvan.
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Nils Breunese <N....@vpro.nl>.
Jo Giraerts wrote:
> Users are not permitted to start services on privileged ports (<1024).
That's right. Either you'll need to start CouchDB as root or run a
reverse proxy on port 80 that proxies to CouchDB running on a higher port.
Some pointers on setting up a reverse proxy for CouchDB:
http://wiki.apache.org/couchdb/Apache_As_a_Reverse_Proxy
http://wiki.apache.org/couchdb/Nginx_As_a_Reverse_Proxy
Nils.
De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekking van deze informatie aan derden is voorbehouden aan geadresseerde. De VPRO staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden e-mail, noch voor tijdige ontvangst daarvan.
Re: [Newbie] -- Couchdb on port 80 with couchdb user
Posted by Jo Giraerts <wh...@gmail.com>.
Users are not permitted to start services on privileged ports (<1024).
On Tue, Mar 9, 2010 at 11:53 AM, Hugues Dubois <hu...@gmail.com> wrote:
> Hi,
>
> I'm installing couchdb from source like this
> http://books.couchdb.org/relax/appendix/installing-from-source
>
> But, i have a problem to start couchdb on port 80 with a couchdb user.
> If couchdb is started with root user, couchdb listen port 80 with no
> problem but if i start it with couchdb user, the couchdb server does
> not listen port 80.
>
> Thanks for help.
>
> Hugues
>
> --
> Hugues Dubois
> Développeur Web / Intégrateur de solution Open Source
> Tél. : +33 (0)6 22 03 68 92
>