LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-25-2003, 08:49 AM   #1
Rai Paul
LQ Newbie
 
Registered: May 2003
Posts: 3

Rep: Reputation: 0
Unhappy Subdomais Apache *wildcard CNAME - VirtualDocumentRoot - config file


Hello,

please I need your help !!!! Some words before: I use a special "subdomain feature" on a virtual server and now I would like to use it also on my new own dedicated server. Unfortunately the provider of my virtual server donīt
give me the needed special conf file. ( I will name it her subdomain.conf)

The thing is working very easy and you can setup in fly subdomains without email, ftp account etc.

To create a subdomain you have just to create a new directory in the ftp account and all is ready - no work through control panels or on the server no seperate accounts - thatīs very fine!


I have several domains with name based IP - Unix, RedHat 7.3, Apache
I want make this feature above avaiable to some domains.
For that I have to do the following things for each domain:

1.) I have to add a wildcard CName record in DNS
*.domain.com CNAME www.domain.com

2.) I have to edit - vhost.conf
/usr/local/psa/home/vhosts/domain.com/conf/vhost.conf
and I have to add this lines to vhost.conf
ServerAlias *.1001reisen.de
Include /usr/local/psa/apache/conf/subdomain.conf

Thatīs all no problem, but my problem is the subdomain.conf file.

It is a serverwide working file locate and to create at this path
/usr/local/psa/apache/conf/subdomain.conf
It is a one time setup, because this file will not be edit again for each domain.

So I guess the content must have variables that automatically tell the server automatically ( redirect, forwarding or what ever) that created subdirectories in the
ftp account are subdomains and point it right.

Somebody told me I will need mod_vost_alias.
And I must only VirtualDocumentRoot give an appropriate path template, this will than substitute DocumentRoot and maps
so per choosen domain the used DocumentRoot.

I donīt know whether this is right or not, because I have not any knowledge about this things.

At least I would need somebody who give me the just the content, the lines I have to write in this subdomain.conf file because I can not develop it by myself.
And maybe also additional necessary files ( templates etc.)

Please can you help me ?
Please excuse my bad english!

Regards Rai Paul
 
Old 05-25-2003, 04:24 PM   #2
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Wow, i'm completely lost what it is that you want.....
let me see if I understand you correctly:

You want to host multiple sites on your apache server?

You want the configuration of this virtual hosts in a seperate file, which you include into your exisiting httpd.conf ?

If that is what you want , I can help you with it, but I first have to know exactly what you want, because i didn't understand your request....
 
Old 05-26-2003, 09:41 AM   #3
Rai Paul
LQ Newbie
 
Registered: May 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, thanks for answer!

I host on my server different domains.
I can setup subdomains with seperate ftp accounts, email etc., etc..

However for some of these domains it is not necessary
to have subomians with all this features, like extra ftp etc., it is only more work to setup trough control panel.

I use and know a special feature from an other provider,
just to create subdirectories in FTP account and this subdomains after working like subdomains.
Example:
If I create in www.domain.com the directory "abc"
www.dommain.com/abc/
it is also now working with the subdomain URL
abc.domain.com

So if I want now make this special "Subdomain Feature" avaiable to any of the hosted domains. I have to change DNS
(CNAME wildcard) and the vhost.config for this domain.

This includes a path to a special config file (/usr/local/psa/apache/conf/subdomain.conf or /etc/httpd/conf/subdomain.conf) I called it here subdomain.conf (same like my provider) and this contains the data that in ftp account create subdirectories are also subdomains.

I need the data (content) for subdomain.conf .

I donīt know if I need more configuration files to make this.
Maybe it is also possible to write all in httpd.conf - sorry I donīt know.
I hope you can continue to help me - please!

Regards Rai
 
Old 05-26-2003, 05:38 PM   #4
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
Sorry rai,

Can't help you with that one, However, if you do find the answer, I am really interested in how to do this! Seems a very nice feature!!!

Good luck....

Satch
 
Old 06-01-2003, 08:19 PM   #5
Rai Paul
LQ Newbie
 
Registered: May 2003
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, is here really nobody who can help me ????????????????????
Rai Paul
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ksh check if file exists (using wildcard) problem r18044 Linux - Newbie 5 02-22-2005 07:52 AM
Where is the config file for apache linuxmandrake Linux - Software 2 09-15-2004 05:35 PM
Apache config file to add header and footer mindstormsguy Linux - Software 2 05-02-2004 12:48 PM
Where is the apache config file when installed off drake CD? mindstormsguy Linux - Software 2 10-24-2003 05:09 PM
how to find file using wildcard? huangyanfeng Linux - General 3 10-15-2003 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:13 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