LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-31-2007, 02:12 PM   #1
70mas
Member
 
Registered: Sep 2006
Location: Slovakia
Distribution: Debian, Gentoo
Posts: 34

Rep: Reputation: 15
Apache automatic domains


Hello

I would like to set up Apache virtual hosts to automatically assign document roots for domains and subdomains. Id rather describe it in example:

Code:
subdomain.domain.com -> /www/com/domain/subdomain
a.b.c.d.e.f.g.h.infinite.depth.domain.com -> /www/com/domain/depth/infinite/h/g/f/e/d/c/b/a
I would like something that is very universal and can be used with any domain without configuration.

Is that possible? Can you please suggest me something to do that?

Thanks.
 
Old 02-01-2007, 12:51 AM   #2
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
I've looked into the same thing.

You might try searching for an apache module to do it, but the answer that I came up with is that it's nearly impossible. Everything that I read said that Apache only selects virtual hosts by IP and port, not by the requested DNS information, as this never makes it to the server - the client simply resolves it into an IP.

Perhaps you could set them up with your registrar manually for forwarding to specific URLs or ports.

Maybe someone else can chime in here?
 
  


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
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
apache virtual domains CaSBoY Linux - Networking 5 07-26-2006 11:44 AM
Apache Question: 2 domains, one server justanothersteve Linux - Software 4 02-20-2006 12:19 AM
Apache: hosting multiple domains fturcic Linux - Software 1 02-15-2005 05:39 PM
2 domains point on the same apache dominant Linux - General 1 03-29-2004 02:04 AM


All times are GMT -5. The time now is 07:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration