Re: DNS / Webserver in a project environment



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



Relevant Pages

  • Re: DNS for hosting: A or CNAME?
    ... The webmaster sets up his server to answer as the new host ... I make the DNS change ... It's neither odd nor affecting IIS or Apache. ...
    (microsoft.public.inetserver.iis)
  • Re: Rogue PHP file
    ... you finding apache on your box negates about half of my last post. ... not running a public web server on your SBS, then close port 80 to your SBS. ... It appears to have an Apache server listening. ... It is hosted by a local company called tinkergraphics.com / Our DNS is managed by RoadRunner. ...
    (microsoft.public.windows.server.sbs)
  • Apache startup resolve problem
    ... As this is part of a bind learning ... The problem is that the Apache server can't resolve any of my name ... The strange thing is that doing DNS ...
    (comp.infosystems.www.servers.unix)
  • Re: DNS / Webserver in a project environment
    ... I'd like to set up a Webserver (Apache) within a DNS-Server. ... It's possible, that I haven't understood DNS, but how can send a DNS-Query ... would recommend PowerDNS, otherwise I would recommend djbdns. ...
    (Ubuntu)
  • Re: apache - gutsy
    ... I'm googling through both web and some apache docs now, ... you'd still want your network to be able to find your server. ... If you have a local router, it probably has its own DNS which can do the ...
    (Ubuntu)