Results 1 to 3 of 3

Thread: Generic subdomain under apache2

  1. #1
    Senior Member kopite's Avatar
    Join Date
    Sep 2006
    Location
    Liverpool
    Posts
    3,491
    Thanks
    80
    Thanked
    157 times in 126 posts
    • kopite's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • Intel Core i5 2500K
      • Memory:
      • 8GB DDR3 1600 MHz Corsair Memory Vengeance Black
      • Storage:
      • 128GB Crucial m4 for main drive. 3.5 TB of storage space over western Digital Drives
      • Graphics card(s):
      • Gigabyte NVIDIA GTX 970 G1 Gaming Edition
      • PSU:
      • 750W ANTEC TRUEPOWER
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 1 x 27 inch dell Monitor 1 x 20 inch Dell monitor
      • Internet:
      • Virgin media 150MB

    Generic subdomain under apache2

    HI guys,

    I have set up apache2 and have got my websites working using virtualhosts.

    I want to set up a webmail subdomain on all the domains that goes to the same site.

    Is there an easy way to do this or do I need to create serperate entries for each site.

  2. #2
    Gentoo Ricer
    Join Date
    Jan 2005
    Location
    Galway
    Posts
    11,048
    Thanks
    1,016
    Thanked
    944 times in 704 posts
    • aidanjt's system
      • Motherboard:
      • Asus Strix Z370-G
      • CPU:
      • Intel i7-8700K
      • Memory:
      • 2x8GB Corsiar LPX 3000C15
      • Storage:
      • 500GB Samsung 960 EVO
      • Graphics card(s):
      • EVGA GTX 970 SC ACX 2.0
      • PSU:
      • EVGA G3 750W
      • Case:
      • Fractal Design Define C Mini
      • Operating System:
      • Windows 10 Pro
      • Monitor(s):
      • Asus MG279Q
      • Internet:
      • 240mbps Virgin Cable

    Re: Generic subdomain under apache2

    instead of entering subdomains for each site, just do *.webmail.example.com. IN CNAME webmail.example.com. Then create separate vhosts in apache, for each. You could even (theoretically) use mod_rewrite & friends to redirect unknown wildcarded domains to somewhere else.
    Quote Originally Posted by Agent View Post
    ...every time Creative bring out a new card range their advertising makes it sound like they have discovered a way to insert a thousand Chuck Norris super dwarfs in your ears...

  3. #3
    Senior Member kopite's Avatar
    Join Date
    Sep 2006
    Location
    Liverpool
    Posts
    3,491
    Thanks
    80
    Thanked
    157 times in 126 posts
    • kopite's system
      • Motherboard:
      • Asus Maximus IV Gene-Z
      • CPU:
      • Intel Core i5 2500K
      • Memory:
      • 8GB DDR3 1600 MHz Corsair Memory Vengeance Black
      • Storage:
      • 128GB Crucial m4 for main drive. 3.5 TB of storage space over western Digital Drives
      • Graphics card(s):
      • Gigabyte NVIDIA GTX 970 G1 Gaming Edition
      • PSU:
      • 750W ANTEC TRUEPOWER
      • Case:
      • Silverstone Fortress FT03
      • Operating System:
      • Windows 10
      • Monitor(s):
      • 1 x 27 inch dell Monitor 1 x 20 inch Dell monitor
      • Internet:
      • Virgin media 150MB

    Re: Generic subdomain under apache2

    I have done it now.

    <VirtualHost *>
    ServerName webmail.*
    ServerAlias webmail.*
    DocumentRoot /path_to_your_webmail
    </VirtualHost>

    And thats done it

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using a Three SIM in a generic N95?
    By autopilot in forum Smartphones and Tablets
    Replies: 3
    Last Post: 14-09-2007, 03:12 PM
  2. Branded and generic RAM (the usual question, with a twist)
    By idlewild in forum PC Hardware and Components
    Replies: 5
    Last Post: 20-12-2006, 11:15 PM
  3. Generic Host Process Error
    By midzt in forum Help! Quick Relief From Tech Headaches
    Replies: 1
    Last Post: 14-11-2006, 05:55 PM
  4. A64 and generic ram
    By mrdata2003 in forum PC Hardware and Components
    Replies: 5
    Last Post: 03-01-2005, 05:08 PM

Posting Permissions

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