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

Re: [cobalt-users] Viewing a Site Before Propogation



baltimoremd@xxxxxxxxxxxxxxx wrote:

> Carrie had delveloped a method to view a site before propogation
> by making a change in httpd.conf
> AliasMatch ^/sites/([^/]+)(/(.*))? /home/sites/$1/web/$3
>
> It works like a charm...except
> cgi-scripts give the generic internal error message and the
> error log shows
> Premature end of script headers: /usr/cgiwrap/cgiwrap
> when the page using the script is called via the
> http://www.mainsite.net/sites/www.customersite.com/test.shtml
>
> But, when calling the page as
> http://www.customersite.com/test.shtml
> the page and script work
>
> Any suggestions?
>
> Carrie's Fix is a real time saver...and I'd like to reduce the
> "How come my script is broken" questions.
>
> Thanks
>
> Thom
>

Hi Thom,

Heres another angle for you on the same problem.
(works nice on a raq3)
I set up a few extra hosts on my main domain (ie. site1- site200.maindomain.com), then I create the site as they wish / reg the domain etc.  (Note the extra HOSTs need to have been done in advance - like at least 24 hours, but I just do them in blocks of 10/20 when I feel in the mood :) )
Then a quick edit in the httpd.conf, and under the new site, I just add:

    ServerAlias site1.maindomain.com

and alter the "RewriteEngine on" to

    RewriteEngine off

as a temporary measure, which I switch back on after propogation has been completed!

Restart httpd, and its sorted, cgi etc all work (if setup etc), and the site can be accessed via "site1.maindomain.com" for ever more if they wish.
Personally I can't be bothered to remove it, and as a bonus, I can check out my customers sites using it, especially if I can't remember their domain names later on. <grin>
Mail works I seem to remember ( ???@site1.maindomain.com - if you also edit the virtusertable file etc) but I don't normally worry, as propogation is rarely longer than 48hours away at the most.


--
Regards,
Kul