Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subdomais Apache *wildcard CNAME - VirtualDocumentRoot - config file

Status
Not open for further replies.

raipaul

Vendor
May 25, 2003
4
DE
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
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 assume the content must have variables that
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 and sorry about my bad english ?


Thank you!
Rai Paul
 
Thanks for answer, but how this advertising of these companys can help me I really don´t understand ??? It looks more you add this links for better ranking in search engines ? Sorry, but I need real help and not adervtising of other companys!
Please stop such spam nonsens in my thread!
 
[bugeyed]

The sites you refer to are in my signature, not the actual post.

If you took the time to look at the actual post, you would have noticed the link to the FAQ.

FYI, anything that comes after hope this helps normally is not related to the actual thread in question.

Hope this helps

Wullie

[bugeyed] --- END OF POST --- [bugeyed]


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thank you, I red this FAQ already before I posted my question,
but as I have no experiance in this things I need more special help.
How I tried to described it. Thank you ! Rai Paul
 
Hallo,

is here really nobody who can help me more ???????????

Regards
Raipaul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top