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