Subdomains

Mba ahafahana manao subdomains -> domain/subdomain dia izao no nataoko

-> mampiditra entrée ao amin’ny CNAME
*.domain.com CNAME domain.com.

-> mamorona na manova ny vhost.conf ao amin’ny conf-n’ilay domain hovaina

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteMap lowercase int:tolower
ServerAlias *.domain.com
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain.com$
RewriteCond %{HTTP_HOST} !^hery\.domain .com$
RewriteCond %{HTTP_HOST} !^login\.domain.com $
RewriteCond %{HTTP_HOST} !^webmail\. domain.com$
RewriteCond %{HTTP_HOST} ^[^.]+\.domain. com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^([^.]+)\.domain .com(.*) /var/www/vhosts/domain .com/httpdocs/$1$2
</IfModule>

-> atao ny commande
/usr/local/psa/admin/bin/websrvmng -u –vhost-name=mydomain.com

-> redemarrer-na ny apache

Verifier-o fa sao dia tsy
/var/www/vhosts/serasera.org/httpdocs/
ny path nampiasaina

Hery
http://hery.serasera.org
"Tsiky dia ampy"
Tel +39 338 744 2412

Annunci

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...