All subdomain on the domain

ramax

Verified User
Joined
Dec 12, 2003
Messages
16
Hello has all, (scuse my bad english ... im french )

I read a large part of the forum but I do not find exactly what I seek.

I will like all subdomain *.mydomaine.com go to http://mydomaine.com but :

test.mydomaine.com go to mydomaine.com:2222 automatically !

i create in dns management :

* A 195.140.XXX.XXX ( i dont write XXX.XXX on real :) )

how to have all subdomain ( * ) redirect on one domain ?


regards
 
Last edited:
i found :D

it's dificult for a french to read all post of this forum, but i found my solution

just write this on " Custom HTTPD Configurations " section ( admin panel )

ServerAlias *.arts-fr.com
 
A priori il n'y a pas de risques pour votre sevreur d'agir ainsi. Par défaut, le sous domaine www redirige vers le nom de domaine principal. Cependant, il n'y a pas de mal à avoir les autres sous domaines qui font comme le www.

[I explain that there is no problem making any subdomain acting as the www default subdomain.]
 
hi :)

i have another question for this thread

how to make a serveralias with the reseler panel or user panel ( without the admin panel )
 
Last edited:
Only the admin has access to the custom httpd settings at this time. I'm not sure if it's possible to work around it
 
i have change my hosting compagny for my reseller account , i send a mail to this compagnie for have my

ServerAlias *.pulsblog.com

in httpd configuration

but this dont work, http://******.pulsblog.com print an error

i list my conf file :

Code:
# Auto generated apache config file by DirectAdmin version 1.23.5 # Modifying this file is not recommended as any changes you make will be # overwritten when the user makes any changes to his/her website

# Frontpage requires these parameters in every httpd.conf file or else # it won't work.
Port 80
ServerRoot /etc/httpd


<VirtualHost 66.246.229.3:80>
Serveralias *.pulsblog.com

ServerName [url]www.pulsblog.com[/url]
ServerAlias [url]www.pulsblog.com[/url] pulsblog.com ServerAdmin [email][email protected][/email] DocumentRoot /home/pulsblog/domains/pulsblog.com/public_html


UseCanonicalName OFF

User pulsblog
Group pulsblog
CustomLog /var/log/httpd/domains/pulsblog.com.bytes bytes CustomLog /var/log/httpd/domains/pulsblog.com.log combined ErrorLog /var/log/httpd/domains/pulsblog.com.error.log

<Directory /home/pulsblog/domains/pulsblog.com/public_html>
Options +Includes -Indexes
php_admin_flag engine ON
php_admin_flag safe_mode ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email][email protected][/email]'
</Directory>



#php_admin_value open_basedir
/home/pulsblog/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/

</VirtualHost>

anyone see an error ? i lost a modification ?
 
Change

Code:
ServerAlias *.pulsblog.com

into

Code:
ServerAlias *.pulsblog.com pulsblog.com ServerAdmin [email][email protected][/email] DocumentRoot /home/pulsblog/domains/pulsblog.com/public_html

regards,
Onno Vrijburg
 
thanks for your help;

I make this modification and this dont work :( :confused:

is verry important for me , do you have another idea ?
 
Onno's code came out wrong; it should be on separate lines this way:
Code:
ServerAlias *.pulsblog.com pulsblog.com
ServerAdmin [email][email protected][/email]
DocumentRoot /home/pulsblog/domains/pulsblog.com/public_html
Is this what you tried?

Jeff
 
Back
Top