You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Srinivas Kotapally <ks...@bisil.com> on 2004/05/04 21:49:06 UTC
[users@httpd] Name based virtual hosting
Hi all
I am trying move from one form of name based virtual hosting to another.
basically I want to have sites being accessed as:
foo.com/a/
foo.com/b
zoo.com
I need them accessed as:
a.foo.com
b.foo.com
zoo.com
Each of these domains will have their own servlet zones in the virtual host
container. And this is working fine for the domain (i.e. foo.com and
zoo.com) but not for the sub domains a.foo.com and b.foo.com. I don't have
a DNS server set-up. Will I need one? Will I need my ISP to create DNS
records for a.foo.com and b.foo.com in order for this to work?
Please help!!
Here are my httpd.conf containers:
<VirtualHost ww.xx.yy.zz>
DocumentRoot /var/www/html/
ServerName a.foo.com
ErrorLog /var/log/httpd/error_log_a_com
CustomLog /var/log/httpd/access_log_a_com
<IfModule mod_jserv.c>
ApJServDefaultPort 8007
ApJServMount /servlets /a
ApJServMount /servlet /a
</IfModule>
</VirtualHost>
<VirtualHost ww.xx.yy.zz>
DocumentRoot /var/www/html/
ServerName b.foo.com
ErrorLog /var/log/httpd/error_log_b_foo_com
CustomLog /var/log/httpd/access_log_b_foo_com
<IfModule mod_jserv.c>
ApJServDefaultPort 8007
ApJServMount /servlets /b
ApJServMount /servlet /b
</IfModule>
</VirtualHost>
<VirtualHost ww.xx.yy.zz>
DocumentRoot /var/www/html/zoo/
ServerName www.zoo.com
ErrorLog /var/log/httpd/error_log_zoo
<IfModule mod_jserv.c>
ApJServDefaultPort 8007
ApJServMount /servlets /zoo
ApJServMount /servlet /zoo
</IfModule>
</VirtualHost>
I have the required jserv.properties and <domain>.properties setup... I just
need a way where I can have these sites run with jserv with
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Name based virtual hosting
Posted by Laura Vance <va...@winfreeacademy.com>.
Hello,
Your guess is correct. In order to have a.foo.com and b.foo.com resolve
to your server, they will need to have DNS entries. Whether you run
your own DNS or have your ISP do it for you is your decision.
Personally, when I may have need for multiple hosts, I prefer to run my
own DNS, that way if I want to move something or add a server or change
a machine's IP within my static range, I don't have to wait for someone
else's timetable when they can get to my request.
If you choose to set up a DNS, remember that you have to tell the root
name servers (verisign, network solutions, et al) where your DNS is
being hosted. That way when people look up your hosts, they will find
them in your DNS, not your ISP's DNS.
Srinivas Kotapally wrote:
>Hi all
>
>I am trying move from one form of name based virtual hosting to another.
>basically I want to have sites being accessed as:
>foo.com/a/
>foo.com/b
>zoo.com
>I need them accessed as:
>a.foo.com
>b.foo.com
>zoo.com
>
>Each of these domains will have their own servlet zones in the virtual host
>container. And this is working fine for the domain (i.e. foo.com and
>zoo.com) but not for the sub domains a.foo.com and b.foo.com. I don't have
>a DNS server set-up. Will I need one? Will I need my ISP to create DNS
>records for a.foo.com and b.foo.com in order for this to work?
>
>Please help!!
>
>
>
--
Thanks,
Laura Vance
Systems Engineer
Winfree Academy Charter Schools, Data-Business Office
1711 W. Irving Blvd. Ste 310
Irving, Tx 75061
Web: www.winfreeacademy.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org