Re: DNS / Webserver in a project environment
- From: Preston Hagar <prestonh@xxxxxxxxx>
- Date: Tue, 23 Feb 2010 10:54:30 -0600
On Tue, Feb 23, 2010 at 8:36 AM, Reineke Fuchs <malepatus@xxxxxxxxxxxxxx> wrote:
Hello Ubuntuusers,
I'd like to set up a Webserver (Apache) within a DNS-Server.
I'd like to create my own namespace (just for this small subnet) and give
around 10 people webspace.
It's possible, that I haven't understood DNS, but how can send a DNS-Query
into a sub-directory?
Example:
user1.test.com ==> /var/www/user1/index.html
user2.test.com ==> /var/www/user2/index.html
...
user10.test.com ==> /var/www/user10/index.html
My status now:
test.com ==> 127.0.0.1 ==> /var/www/index.html ==> It works.
How do I link DNS to a directory and not to an IP?
Best greetings
jaik
--
Virtual Hosts:
http://httpd.apache.org/docs/2.2/vhosts/name-based.html
As a basic example in your apache config could put something like this:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName user1.test.com
DocumentRoot /var/www/user1
</VirtualHost>
That page should give you the info you need. As for DNS, that is a
completely seperate issue. If it truly is just ten users and you
aren't going to change things, you could take a super easy route and
just add the enteries to the users hosts file. Of course, if anything
ever changes, you would have to go around and update everyone's
machine again. The other option would be to setup either djbdns,
PowerDNS, Bind, or another internal DNS server and create your entries
in it. If you are comfortable setting up a Postgresql database, I
would recommend PowerDNS, otherwise I would recommend djbdns. Just
google the names and you should be able to find some setup guides
pretty easily.
Preston
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- Follow-Ups:
- References:
- DNS / Webserver in a project environment
- From: Reineke Fuchs
- DNS / Webserver in a project environment
- Prev by Date: Re: home files on desktop
- Next by Date: Re: no sound on HP pavillion laptop model dv6
- Previous by thread: Re: DNS / Webserver in a project environment
- Next by thread: Re: DNS / Webserver in a project environment
- Index(es):
Relevant Pages
|