[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Subdomains in RaQ 4i - HELP
- Subject: Re: [cobalt-users] Subdomains in RaQ 4i - HELP
- From: José Luis Chafardet Grimaldi <joseluis@xxxxxxxxxxxxxxxx>
- Date: Sun Feb 16 08:43:00 2003
- Organization: DGTal Studios
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>http://www.raqware.com/how2.html#sub-domains
>
>Geralf
>--
>
>Create Sub Domains:
>These instructions create a REAL sub domain, if the virtual site is a front
page site, front page will see the subdomains when the site is edited.
>
>[1] Create a user subdomain in domain.
>subdomain is the name for the sub domain in domain virtual site.
>[2] Create 'A' records in DNS for domain.com
>www.subdomain.domain.com
>subdomain.domain.com
>[3] Create a file in /etc/httpd/
>File name can be anything, I use domain.conf.
>Put the following text in the file domain.conf.
><VirtualHost 111.222.333.444>
>ServerName www.subdomain.domain.com
>ServerAdmin thedomain-admin
>ServerAlias subdomain.domain.com
>DocumentRoot /home/sites/www.domain.tld/users/subdomain/web
>RewriteEngine on
>RewriteCond %{HTTP_HOST} !^111.222.333.444(:80)?$
>RewriteCond %{HTTP_HOST} !^www.subdomain.domain.com(:80)?$
>RewriteRule ^/(.*) http://www.subdomain.domain.com/$1 [L,R]
>RewriteOptions inherit
>AddHandler cgi-wrapper .cgi
>AddHandler cgi-wrapper .pl
></VirtualHost>
>NOTE: In the above container replace subdomain, domain-admin, domain, and
111.222.333.444 with the actual names (values) Add any other AddHandler
>types you might need.
>[4] edit /etc/httpd/conf/httpd.conf
>Add a line that states: "include domain.conf" (without quotation marks)
>Place this line after the server <VirtualHost> container. This allows
errors to resolve to the server domain instead of one of the sub/domains
>[5] reload httpd
>RaQ3 - RaQ4 /etc/rc.d/init.d/httpd reload
>RaQ2 /etc/rc.d/init.d/httpd.init reload
>DONE
The next steep i cant understand it
>[2] Create 'A' records in DNS for domain.com
>www.subdomain.domain.com <---- idid create this pointing to the ip address
of the server
>subdomain.domain.com <----- cant understand what this does now, a new (A)
record?
neither this
>[4] edit /etc/httpd/conf/httpd.conf
>add a line that states: "include domain.conf" (without quotation marks)
<--- This is clear to me
>Place this line after the server <VirtualHost> container. This allows
errors to resolve to the server domain instead of one of the sub/domains
<---This is not
the rest is done
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
José Luis Chafardet Grimaldi
DGTal Studios Information Communication & Design Intergrated Solutions
Presidente
http://www.dgtalstudios.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-