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


  Search this Thread
Old 01-31-2007, 02:12 PM   #1
Registered: Sep 2006
Location: Slovakia
Distribution: Debian, Gentoo
Posts: 34

Rep: Reputation: 15
Apache automatic domains


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: -> /www/com/domain/subdomain -> /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?

Old 02-01-2007, 12:51 AM   #2
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?


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 > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:11 PM.

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