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

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



On Sunday 16 February 2003 11:40, José Luis Chafardet Grimaldi wrote:
> 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?

You need 'a' records in the records for domain.tld
for subdomain.domain.tld and if you want www.subdomain.domain.tld

> neither this
>
> >[4] edit /etc/httpd/conf/httpd.conf
> >
> >add a line that states: "include domain.conf" (without quotation marks)

this is so httpd knos about the subdomains in the include file.

> <--- 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
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users

-- 
http://frontstreetnetworks.com | http://store.raqware.com
Front Street Networks LLC      |  Phone: 203-785-0699
229 Front Street, Ste #C, New Haven, CT 06513-3203