LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2009, 10:51 PM   #1
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Rep: Reputation: 15
Apache virtual host wild cards


How can I make a virtual host (right now I just use NameVirtualHost *:80) that will load the same page for every domain that matches imap.domain.com, smtp.domain.com, or pop3.domain.com?

-Brandon

Last edited by Guardian-Mage; 04-21-2009 at 11:13 PM.
 
Old 04-23-2009, 11:15 AM   #2
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
User Server Alias:

Quote:
NameVirtualHost *

<VirtualHost * :80>
ServerName imap.domain.com
ServerAlias smtp.domain.com pop3.domain.com
DocumentRoot /www/domain
</VirtualHost>
or if you want anything.domain.com to point to that same site, use:

Quote:
ServerAlias *.domain.com
 
Old 04-24-2009, 05:57 AM   #3
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
Well since I want smtp.domain1.com and smtp.domain2.com and smtp.domain3.com to all point to a webmail program, can I use this:

Code:
ServerAlias smtp.*.* imap.*.*
-Brandon
 
Old 04-24-2009, 06:03 AM   #4
Guardian-Mage
Member
 
Registered: Jan 2008
Posts: 36

Original Poster
Rep: Reputation: 15
I just tried it and it works. Thanks.
 
Old 04-24-2009, 10:26 AM   #5
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
Am glad to have helped.
Might not need double wildcards, just:
Quote:
ServerAlias smtp.* imap.*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping owner info when moving a directory linuxfia Linux - General 4 08-14-2008 11:12 AM
Get the owner of a directory frayja Linux - Software 3 08-31-2007 01:49 PM
can't change owner of directory miner49er Linux - Networking 1 05-04-2006 03:58 PM
Owner of file in shared directory changing Gunbunny Linux - General 4 01-13-2006 07:00 PM
Changing owner of a directory recursively? fturcic Linux - General 2 02-01-2005 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration