[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Subdomains in RaQ 4i - HELP



To create a subdomain in a cobalt raq4i

the steeps i should follow are?

First add an (A) Reccord for the domain

edit httpd.conf with the next data:

<VirtualHost 216.12.215.29>
ServerName sub.domain.com
ServerAdmin admin
DocumentRoot /home/sites/site*/web/sub
ServerAlias sub.domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^ipaddress(:80)?$
RewriteCond %{HTTP_HOST}                !^sub.domain.com(:80)?$
RewriteRule ^/(.*)                      http://sub.domain.com/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site*/users/$1/web/$3
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# AddHandler chiliasp .asp
# AddHandler chiliasp .asa
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType    text/html     .shtml
</VirtualHost>

then?

i guess i must do a link something like

#> cd /home/sites/site*/web
#> ln -s /home/sites/site*/sub /home/sites/site*/web/sub

????
Please tell me if i'm wrong or i need to do something more


Best regards and thanks in advance

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
José Luis Chafardet Grimaldi
DGTal Studios Information Communication & Design Intergrated Solutions
Presidente
http://www.dgtalstudios.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-