Mailing List Archive

domain name keeps point to default
Hi, I have an account with dyn.com for use with my changing home server's ip
address.
I've created a new folder called /var/www/home and created new VS which
points to the folder. The index of the folder has been created and Host
Match > Method -- Wildcards > Domain pattern = myaccount.dyndns.org has been
set up.

If I enter myaccount.dyndns.org in the browser, it points to default's page.
If I add /home to the url, it points to the correct page in /var/www/home.

What do I need to do to make it point to the contents of /var/www/home when
accessing the server with my domain?

Thanks.

--
View this message in context: http://cherokee-web-server-general.1049476.n5.nabble.com/domain-name-keeps-point-to-default-tp5164326p5164326.html
Sent from the Cherokee Web Server - General mailing list archive at Nabble.com.
_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee
Re: domain name keeps point to default [ In reply to ]
Sounds like a configuration issue.

First thing I'd do is put a script (PHP) in the directories that
echoes back what it sees as the URL being requested. Possible that
the forwarding DNS service isn't serving up an A record but doing a
redirect possibly.

I had a semi-similar issue with a site that had subdirectories and an
index.php in each subdirectory. Cherokee had to be told to handle
URL's with no file provided with default action of loading index.php.

I handled that with a REDIRECTION rule:

Regular Expression: ^(.+)$

Handler: Redirection

Type: Internal

Regular Expression: ^/(.*)$

Substitution: $1/index.php

Sounds like what you need exactly...

I have that rule just above the DEFAULT catch-all rule.

Hope that helps!

On 1/22/12, horsebones <leon.san.email@gmail.com> wrote:
> Hi, I have an account with dyn.com for use with my changing home server's ip
> address.
> I've created a new folder called /var/www/home and created new VS which
> points to the folder. The index of the folder has been created and Host
> Match > Method -- Wildcards > Domain pattern = myaccount.dyndns.org has been
> set up.
>
> If I enter myaccount.dyndns.org in the browser, it points to default's page.
> If I add /home to the url, it points to the correct page in /var/www/home.
>
> What do I need to do to make it point to the contents of /var/www/home when
> accessing the server with my domain?
>
> Thanks.
>
> --
> View this message in context:
> http://cherokee-web-server-general.1049476.n5.nabble.com/domain-name-keeps-point-to-default-tp5164326p5164326.html
> Sent from the Cherokee Web Server - General mailing list archive at
> Nabble.com.
> _______________________________________________
> Cherokee mailing list
> Cherokee@lists.octality.com
> http://lists.octality.com/listinfo/cherokee
>
_______________________________________________
Cherokee mailing list
Cherokee@lists.octality.com
http://lists.octality.com/listinfo/cherokee