Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Adding subdomains

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


oltarasenko at gmail

Oct 16, 2009, 1:26 PM

Post #1 of 7 (729 views)
Permalink
Adding subdomains

Hi!

Could you help me to define subdomain for my virtual server?

I want to add a subdomain to my server (so it will be media.j-in.org.ua),
but don't understand how to do it.

I read this doc
http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html, but
don't understand how to use it?

How can I define it the way if request comes for media.j-in.org.ua, so it
will be processed separately?


info at ppvg

Oct 16, 2009, 1:29 PM

Post #2 of 7 (690 views)
Permalink
Re: Adding subdomains [In reply to]

Just create a new virtual server, matching the subdomain.

On Oct 16, 2009 10:27 PM, "Oleg Oltar" <oltarasenko [at] gmail> wrote:

Hi!

Could you help me to define subdomain for my virtual server?

I want to add a subdomain to my server (so it will be media.j-in.org.ua),
but don't understand how to do it.

I read this doc
http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html, but
don't understand how to use it?

How can I define it the way if request comes for media.j-in.org.ua, so it
will be processed separately?

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


oltarasenko at gmail

Oct 17, 2009, 12:10 AM

Post #3 of 7 (682 views)
Permalink
Re: Adding subdomains [In reply to]

:(

Seems I don't understand how to do it. Added a virtual server
http://media.j-in.org.ua
Configured it to show server info. But doesn't appears that it work. Do I
have to make some other configurations?

On Fri, Oct 16, 2009 at 11:29 PM, Peter-Paul van Gemerden <info [at] ppvg>wrote:

> Just create a new virtual server, matching the subdomain.
>
> On Oct 16, 2009 10:27 PM, "Oleg Oltar" <oltarasenko [at] gmail> wrote:
>
> Hi!
>
> Could you help me to define subdomain for my virtual server?
>
> I want to add a subdomain to my server (so it will be media.j-in.org.ua),
> but don't understand how to do it.
>
> I read this doc
> http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html,
> but don't understand how to use it?
>
> How can I define it the way if request comes for media.j-in.org.ua, so it
> will be processed separately?
>
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>
>


oltarasenko at gmail

Oct 17, 2009, 1:31 AM

Post #4 of 7 (688 views)
Permalink
Re: Adding subdomains [In reply to]

Maybe someone can check my config file?

On Sat, Oct 17, 2009 at 10:10 AM, Oleg Oltar <oltarasenko [at] gmail> wrote:

> :(
>
> Seems I don't understand how to do it. Added a virtual server
> http://media.j-in.org.ua
> Configured it to show server info. But doesn't appears that it work. Do I
> have to make some other configurations?
>
>
> On Fri, Oct 16, 2009 at 11:29 PM, Peter-Paul van Gemerden <info [at] ppvg>wrote:
>
>> Just create a new virtual server, matching the subdomain.
>>
>> On Oct 16, 2009 10:27 PM, "Oleg Oltar" <oltarasenko [at] gmail> wrote:
>>
>> Hi!
>>
>> Could you help me to define subdomain for my virtual server?
>>
>> I want to add a subdomain to my server (so it will be media.j-in.org.ua),
>> but don't understand how to do it.
>>
>> I read this doc
>> http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html,
>> but don't understand how to use it?
>>
>> How can I define it the way if request comes for media.j-in.org.ua, so it
>> will be processed separately?
>>
>> _______________________________________________
>> Cherokee mailing list
>> Cherokee [at] lists
>> http://lists.octality.com/listinfo/cherokee
>>
>>
>
Attachments: cherokee.conf (19.1 KB)


alvaro at octality

Oct 17, 2009, 3:34 AM

Post #5 of 7 (690 views)
Permalink
Re: Adding subdomains [In reply to]

On 17/10/2009, at 10:31, Oleg Oltar wrote:

> Maybe someone can check my config file?
>
> On Sat, Oct 17, 2009 at 10:10 AM, Oleg Oltar <oltarasenko [at] gmail>
> wrote:
> :(
>
> Seems I don't understand how to do it. Added a virtual server http://media.j-in.org.ua
> Configured it to show server info. But doesn't appears that it work.
> Do I have to make some other configurations?

I couple of things I noticed:

- Domain name matches are not URL. Instead of using "http://
example.com" you should use "example.com".
- They do not include paths either. Some of your domain entries are
like "example.com/home". They should be "example.com"

The rest looks alright to me. Please, fix those issues and let's see
how it goes.

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


wonslung at gmail

Oct 17, 2009, 4:36 AM

Post #6 of 7 (681 views)
Permalink
Re: Adding subdomains [In reply to]

The thing is, theres more than one way to do it. The easiest way is to
simply point a domain with your dns server to the web servers ip, then set
your vhost accordingly. I've found that cherokee works fine with both A
records and C records (i haven't tried any ip6 sites yet)

If you're having trouble, it's likely with the DNS server, and not the
webserver.



On Sat, Oct 17, 2009 at 3:10 AM, Oleg Oltar <oltarasenko [at] gmail> wrote:

> :(
>
> Seems I don't understand how to do it. Added a virtual server
> http://media.j-in.org.ua
> Configured it to show server info. But doesn't appears that it work. Do I
> have to make some other configurations?
>
>
> On Fri, Oct 16, 2009 at 11:29 PM, Peter-Paul van Gemerden <info [at] ppvg>wrote:
>
>> Just create a new virtual server, matching the subdomain.
>>
>> On Oct 16, 2009 10:27 PM, "Oleg Oltar" <oltarasenko [at] gmail> wrote:
>>
>> Hi!
>>
>> Could you help me to define subdomain for my virtual server?
>>
>> I want to add a subdomain to my server (so it will be media.j-in.org.ua),
>> but don't understand how to do it.
>>
>> I read this doc
>> http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html,
>> but don't understand how to use it?
>>
>> How can I define it the way if request comes for media.j-in.org.ua, so it
>> will be processed separately?
>>
>> _______________________________________________
>> Cherokee mailing list
>> Cherokee [at] lists
>> http://lists.octality.com/listinfo/cherokee
>>
>>
>
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
>
>


oltarasenko at gmail

Oct 17, 2009, 10:31 PM

Post #7 of 7 (679 views)
Permalink
Re: Adding subdomains [In reply to]

I just reviewed my virtual server definitions with cherokee admin. So my
new config file is in attach...

Also I am not very related to DNS server. So know little about how it works.
As far as I know the dns server is named?

I reviewed it config, and looks as following:
[root [at] oplo data]# cat /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";

zone "ursa.org.ua" {
type master;
file "/var/named/ursa.org.ua";
};
zone "j-in.org.ua" {
type master;
file "/var/named/j-in.org.ua";
};
zone "pravozahist.in.ua" {
type master;
file "/var/named/pravozahist.in.ua";
};
zone "media.j-in.org.ua" {
type master;
file "/var/named/media.j-in.org.ua";
};
[root [at] oplo data]#


And also:

[root [at] oplo data]# cat /var/named/media.j-in.org.ua
$TTL 3600
media.j-in.org.ua. IN SOA ns1.IDENT.vds.colocall.com.
root.oplot.vds.colocall.com. (2009101700 10800 3600 604800 86400)
media.j-in.org.ua. IN NS ns1.IDENT.vds.colocall.com.
media.j-in.org.ua. IN NS ns2.IDENT.vds.colocall.com.
media.j-in.org.ua. IN MX 10 mail
media.j-in.org.ua. IN MX 20 mail
media.j-in.org.ua. IN A 62.149.25.66
www IN A 62.149.25.66
ftp IN A 62.149.25.66
mail IN A 62.149.25.66
smtp IN A 62.149.25.66
pop IN A 62.149.25.66
media.j-in.org.ua. IN TXT "v=spf1 ip4:62.149.25.66 a mx ~all"
[root [at] oplo data]#
.


Could you suggest what is wrong there? Or how to reconfigure it?

On Sat, Oct 17, 2009 at 2:36 PM, Thomas Burgess <wonslung [at] gmail> wrote:

> The thing is, theres more than one way to do it. The easiest way is to
> simply point a domain with your dns server to the web servers ip, then set
> your vhost accordingly. I've found that cherokee works fine with both A
> records and C records (i haven't tried any ip6 sites yet)
>
> If you're having trouble, it's likely with the DNS server, and not the
> webserver.
>
>
>
> On Sat, Oct 17, 2009 at 3:10 AM, Oleg Oltar <oltarasenko [at] gmail> wrote:
>
>> :(
>>
>> Seems I don't understand how to do it. Added a virtual server
>> http://media.j-in.org.ua
>> Configured it to show server info. But doesn't appears that it work. Do I
>> have to make some other configurations?
>>
>>
>> On Fri, Oct 16, 2009 at 11:29 PM, Peter-Paul van Gemerden <info [at] ppvg>wrote:
>>
>>> Just create a new virtual server, matching the subdomain.
>>>
>>> On Oct 16, 2009 10:27 PM, "Oleg Oltar" <oltarasenko [at] gmail> wrote:
>>>
>>> Hi!
>>>
>>> Could you help me to define subdomain for my virtual server?
>>>
>>> I want to add a subdomain to my server (so it will be media.j-in.org.ua),
>>> but don't understand how to do it.
>>>
>>> I read this doc
>>> http://www.cherokee-project.com/doc/config_virtual_servers_evhost.html,
>>> but don't understand how to use it?
>>>
>>> How can I define it the way if request comes for media.j-in.org.ua, so
>>> it will be processed separately?
>>>
>>> _______________________________________________
>>> Cherokee mailing list
>>> Cherokee [at] lists
>>> http://lists.octality.com/listinfo/cherokee
>>>
>>>
>>
>> _______________________________________________
>> Cherokee mailing list
>> Cherokee [at] lists
>> http://lists.octality.com/listinfo/cherokee
>>
>>
>

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.