Skip to Content.
Sympa Menu

discuss - Re: [opennic-discuss] Apache2 vHost config not working when .bit resolved via OpenNIC DNS

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

Re: [opennic-discuss] Apache2 vHost config not working when .bit resolved via OpenNIC DNS


Chronological Thread 
  • From: "Christopher D. Bartels" <chris AT christopherbartels.com>
  • To: discuss AT lists.opennicproject.org
  • Subject: Re: [opennic-discuss] Apache2 vHost config not working when .bit resolved via OpenNIC DNS
  • Date: Sun, 14 Sep 2014 02:21:54 -0400

I was visiting universitysports.bit repeatedly, both via OpenNIC & the
.pe proxy.

error.log:
[Sun Sep 14 00:03:17 2014] [notice] Apache/2.2.22 (Debian)
PHP/5.4.4-14+deb7u14 configured -- resuming normal operations
[Sun Sep 14 03:02:42 2014] [error] [client 74.78.219.253] File does not
exist: /var/www/favicon.ico

access.log:
107.161.16.236 - - [14/Sep/2014:04:27:07 +0000] "GET / HTTP/1.1" 200
16727 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
107.161.16.236 - - [14/Sep/2014:04:27:08 +0000] "GET /icons/blank.gif
HTTP/1.1" 200 382 "http://universitysports.bit"; "Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120
Safari/537.36"
107.161.16.236 - - [14/Sep/2014:04:27:09 +0000] "GET /icons/folder.gif
HTTP/1.1" 200 459 "http://universitysports.bit"; "Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120
Safari/537.36"
107.161.16.236 - - [14/Sep/2014:04:27:29 +0000] "GET / HTTP/1.1" 200
16727 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
107.161.16.236 - - [14/Sep/2014:04:27:31 +0000] "GET /icons/blank.gif
HTTP/1.1" 304 130 "http://universitysports.bit"; "Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120
Safari/537.36"
107.161.16.236 - - [14/Sep/2014:04:27:31 +0000] "GET /icons/folder.gif
HTTP/1.1" 304 130 "http://universitysports.bit"; "Mozilla/5.0 (Windows NT
6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120
Safari/537.36"

other_vhosts_access.log:
<Empty>

On Sun, Sep 14, 2014, at 00:05, subhuman wrote:
> What's in the logs?
>
> On Sat, 13 Sep 2014 23:19:55 -0400
> "Christopher D. Bartels" <chris AT christopherbartels.com> wrote:
>
> > Hi,
> >
> >
> >
> > I have a number of .bit websites & when I navigate to them via a proxy by
> > adding a .pe to the end of them, they load the correct root directory, as
> > per the Apache2 vHosts configuration, which listens on port 80 & delivers
> > the correct root directory based on the domain name being browsed.
> >
> >
> >
> > But when I visit the page(s) through my OpenNIC DNS servers directly, I
> > get
> > a directory listing of the webserver, as if the server isn't receiving the
> > domain name the visitor is browsing somehow.
> >
> >
> >
> > How can I fix this if OpenNIC interrupts the way the vHost works?
> >
> >
> >
> > I haven't tested if I can enter a port number into each .bit name's
> > configuration & configure the vHosts to use separate ports for each site.
> > That's a less than ideal solution because then I couldn't register my
> > domain
> > names in bulk, each with a straight IP address configured the same across
> > all domains. It would take me months to reconfigure each domain with a
> > separate port number- if that even worked, I dunno.
> >
> >
> >
> > Can you configure your server so that vHosts work as intended based on
> > domain name?
> >
> >
> >
> > Please advise.
> >
> >
> >
> > Thanks,
> > Chris Bartels
> >
>
>
> --
> The world is such a nasty place to be.
>
>
> --------
> You are a member of the OpenNIC Discuss list.
> You may unsubscribe by emailing
> discuss-unsubscribe AT lists.opennicproject.org



Archive powered by MHonArc 2.6.19.

Top of Page