[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] Formmail 1.9s (nobaloney ver), works on main site but no other sites
- Subject: RE: [cobalt-users] Formmail 1.9s (nobaloney ver), works on main site but no other sites
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun Nov 24 21:13:02 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> I am seeking a way to fix this by adding a DNS record or a
> script alias or something like that. As all my vsites have
> the old action code as below -
>
> We originally had the server called 'gold' now the server is
> simply 'www'.
>
> The reason virtual sites don't work with formmail is the
> action in the forms is from the old server name - <form
> name="form1" method="post"
> action="http://gold.mainsite.com/cgi-bin/formmail.cgi">
>
> With the new server name any virtual site and the main site
> works 100% with - <form name="form1" method="post"
> action="http://www.mainsite.com/cgi-bin/formmail.cgi">
>
> Obviously I do not want to be editing and uploading new form
> pages for all my vsites. Anyway I can do this with a DNS
> record or a server side edit??
>
You could add gold.mainsite.com to DNS to point at the same IP and edit
httpd.conf to add an identical virtual site record pointing to the same
/home/sites/site#/web as the existing www site.
You might be able to simply be able to go to the site settings for
www.mainsite.com and add a web server alias of gold.mainsite.com instead
of editing httpd.conf. I haven't tried that, so I don't know if you can
have a different host name in the web server alias.
Of course, you could always simply create a new virtual site of
gold.mainsite.com and upload the script there.
--
Dan Kriwitsky
Please reply to the list only. Offlist replies are not read.