Or if you want something more easy, take a look at http://xip.io
Christian onsdag 20. mars 2013 skrev Andrew Melo følgende: > On Tue, Mar 19, 2013 at 5:52 PM, Chris Sphinx > <[email protected]<javascript:;>> > wrote: > > Okay, sorry about this I'm a programmer but I don't know anything about > networking. I just want to be sure there's no way to achieve the > functionality I'm talking about without 1) getting a domain name or 2) > setting an entry in the /etc/hosts file on the computer I want to use to > access the page. Is that right? > > If you're not wanting a domain name for, I assume, cost reasons, have > you looked at a product like dyndns.org that'll provide a free > subdomain? > > -Andrew > > > > > > > On Mar 19, 2013, at 6:45 PM, Robert Newson <[email protected]> wrote: > > > >> if you want a name maped to an ip address that works anywhere in the > >> world, that's what DNS *is*. :) > >> > >> If you control all the clients, you can add local hosts files and/or > >> point at your own dns server with your own custom zone. > >> > >> B. > >> > >> On 19 March 2013 22:40, Chris Sphinx <[email protected]> wrote: > >>> I simply want to be able to access an html page from the public IP > without breaking the Couch. This is just for my personal convenience, this > is not for a public site. But I want to be able to access the webpage from > anywhere (like a mobile device or public computer). > >>> > >>> If I understand correctly, I could make this work if I had a > registered domain name? That's fine, but is there any way to accomplish > this WITHOUT buying a domain name? > >>> > >>> > >>> On Mar 19, 2013, at 9:22 AM, Robert Newson <[email protected]> wrote: > >>> > >>>> Virtual Hosting is predicated on host names. Vhosting the ip address > >>>> is not recommended, for the reasons you've already encountered. > >>>> > >>>> What are you trying to achieve? It's very odd to direct people to your > >>>> site via IP address. Are you trying to use the virtual host feature as > >>>> a security mechanism? > >>>> > >>>> B. > >>>> > >>>> On 19 March 2013 13:15, Chris Sphinx <[email protected]> wrote: > >>>>> Sure, here is a secret gist with the relevant files: > >>>>> > >>>>> https://gist.github.com/chrissphinx/a9e8411fa6efefa9572c > >>>>> > >>>>> To state the problem again: I cannot access the webpage by hitting: > >>>>> > >>>>> http://184.75.155.16:5984 > >>>>> > >>>>> It will simply return the JSON welcome message. However, if I (or > anyone else I assume) were to create an entry in THEIR /etc/hosts file: > >>>>> > >>>>> 184.75.155.16 couch > >>>>> > >>>>> And hit the url: > >>>>> > >>>>> http://couch:5984 > >>>>> > >>>>> Then it works. That's great, but it's not what I want. I want the > public IP to go directly to the index.html file no matter what computer is > hitting it. The only way I've found to get this to occur is to put in > [vhosts]: > >>>>> > >>>>> 184.75.155.16:5984 > >>>>> > >>>>> The public IP. This DOES work, but it breaks the entire database. > You can't write nor can you retrieve any docs from the database. This makes > sense to me because the database isn't at the IP anymore, just the webpage. > >>>>> > >>>>> A sysadmin friend of mine told me that this is why you need a vhost > set up, but now it's beginning to seem as if I actually want a "reverse > proxy" which is functionality that is not provided by CouchDB? Or is > serving a couch app to the public IP possible with only Couch running on > the RPi? Thank you for the help so far, it is really appreciated. > >>>>> > >>>>> > >>>>> On Mar 19, 2013, at 4:53 AM, Dave Cottlehuber <[email protected]> > wrote: > >>>>> > >>>>>> > >>>>>> Hi Chris, > >>>>>> > >>>>>> Sorry to hear you are stuck on this! I remember being equally > >>>>>> mind-boggled a couple years back. It will "click" soon hopefully. > >>>>>> > >>>>>> BTW It will help a great deal if you can put a minimal case > together & > >>>>>> post it back to the list (or via a paste service gist friendpaste > >>>>>> etc). vhosts, your CNAME, the desi-- > -- > Andrew Melo > -- Sincerely, Christian Vaagland Tellnes Phone: +4791861617 https://github.com/tellnes
