Results 1 to 2 of 2

Thread: Setup catch-all wildcard for a domain

  1. #1
    Join Date
    Apr 2007
    Location
    Israel
    Beans
    6
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Setup catch-all wildcard for a domain

    Hello.
    I'm trying to setup my laptop as development machine, so I've installed LAMP server and now for one of the project I need catch-all wildcard.

    I mean that all requests to anything.example.com will be redirected to example.com (which is on my machine and works fine).

    Here is apache's config for example.com:

    Code:
    <VirtualHost *:80>
    	DocumentRoot /home/boffin/example.com/
    	ServerName example.com
    </VirtualHost>
    also, in my /etc/hosts I have
    Code:
    127.0.0.1 example.com
    So, what do I need to setup catch-all wild card?

  2. #2
    Join Date
    Mar 2008
    Beans
    1,755

    Re: Setup catch-all wildcard for a domain

    You should check out this documentation on mod_alias:

    http://httpd.apache.org/docs/2.0/mod/mod_alias.html

Tags for this Thread

Bookmarks

Posting Permissions

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