Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2002
    Location
    United Kingdom
    Posts
    1,236

    bind + apache question

    I have a question about bind and apache

    is there a way so that any_sub_domain.domain.com will go to a certain apache virtual server

    like

    sub1.domain.com
    sub2.domain.com
    sub3.domain.com
    sub4.domain.com
    sub5.domain.com

    all go to a certain apache vistual server.

    BUT, without making seperate A records for each in BIND, and without making url aliases in the apache server

    basically i want to offer a redirect service on my site, where they can have username.domain.com point to their site. Then have a php page on the virtual server which will detect the url, and open the correct url within a frame.

    Hope you understand what i mean

    // PS, no cpanel installed.... im editing everything via the config files

    Thanx in advance

    Matt.

  2. #2
    You need to use mod_vhost_alias to for apache -
    http://httpd.apache.org/docs-2.0/mod...ost_alias.html

    And use a wildcard for your domain, like this -
    Code:
    *		IN	A	10.10.60.25
    ::. www.diginode.net : Dedicated Servers : Virtual Machine Servers .::
    ::. Industry-Leading Remote Server Management .::
    ::. Automatic OS Re-image : Instant Server Reboot : Remote Serial Console .::
    ::. Over 20 OSes to choose from : Install a new OS every day .::

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •