Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Sending Data to 2 web servers

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Sending Data to 2 web servers

Post by mickopla »

This is probably a crazy question but would it be possible to send data from Cumulus to 2 different web servers and run 2 php websites while using the Saratoga Templates?? eg server A is hosting waterfordcityweather.com while server B hosts waterfordweather.com

Cheers

Mike
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Sending Data to 2 web servers

Post by steve »

Cumulus only supports uploading web pages to one ftp server. But you could use a 'batch' file run as an external command to ftp the files to another server, as described here: http://wiki.sandaysoft.com/a/SFTP. WinSCP does 'normal' FTP as well as SFTP.
Steve
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

steve wrote:Cumulus only supports uploading web pages to one ftp server. But you could use a 'batch' file run as an external command to ftp the files to another server, as described here: http://wiki.sandaysoft.com/a/SFTP. WinSCP does 'normal' FTP as well as SFTP.
Thanks Steve

Will look into that.

Mike
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Sending Data to 2 web servers

Post by beteljuice »

You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......
Image
......................Imagine, what you will KNOW tomorrow !
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

beteljuice wrote:You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......
Would i use the software mentioned by Steve to do this or do you know of another method?

Edit: Also which files would i need to use to get the Saratoga Scripts to work.
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Sending Data to 2 web servers

Post by gemini06720 »

Are the two site on different hosting servers or are they both on the same hosting server but under different directories or sub-directories?
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

mickopla wrote:
beteljuice wrote:You should be able to ftp to your 'prime' site and the 'source' the wxCUdata for the 'secondary' from the 'prime'. ;)

I think ......
Would i use the software mentioned by Steve to do this or do you know of another method?

Edit: Also which files would i need to use to get the Saratoga Scripts to work.
The 2 sites are on different servers.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Sending Data to 2 web servers

Post by beteljuice »

As well as the main data file for the 'base' pages, there are other reports / files which may be required for extended information. Whilst do-able by scripting it would beter to find a dual ftp solution.

The example you quote suggests the same (mirrored) site ?
Image
......................Imagine, what you will KNOW tomorrow !
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

beteljuice wrote:As well as the main data file for the 'base' pages, there are other reports / files which may be required for extended information. Whilst do-able by scripting it would beter to find a dual ftp solution.

The example you quote suggests the same (mirrored) site ?
Yes basically the address for my php site now is www.waterfordcityweather.com/index.php which is long so i decided to purchase www.waterfordweather.com which is shorter and might get improved search results in google. I want to keep the non php website www.waterfordcityweather.com as is because its a more basic site and the base template is from Cumulus but i have modified the page.
User avatar
gwheelo
Posts: 453
Joined: Wed 11 Jun 2008 7:36 pm
Weather Station: WMR-88
Operating System: Windows 8.1
Location: L'Estartit, Spain
Contact:

Re: Sending Data to 2 web servers

Post by gwheelo »

If you wish identical content on the two sites - ftp to one site (A) and then on the alternate site (B) do a redirect to the first site. No one will ever notice!

On site B use an html page named index.htm containing:

<body>
<script>
location = "http://www.site A";
</script>
</body>


That is all you need.
George Wheelock
Image
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

gwheelo wrote:If you wish identical content on the two sites - ftp to one site (A) and then on the alternate site (B) do a redirect to the first site. No one will ever notice!

On site B use an html page named index.htm containing:

<body>
<script>
location = "http://www.site A";
</script>
</body>


That is all you need.
George Wheelock
Thanks George
Sounds simple enough to do. Will give it a try later.

Edit: That did the trick. Anyone now who goes to www.watefordweather.com gets the mirrored website :D
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Sending Data to 2 web servers

Post by mcrossley »

I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Sending Data to 2 web servers

Post by gemini06720 »

mcrossley wrote:I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?
Indeed, my thoughts exactly - I have been doing that with about a dozen of registered domain names... ;)
TNETWeather

Re: Sending Data to 2 web servers

Post by TNETWeather »

mcrossley wrote:I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?
If they are on different hosts, that may not be possible. Most Registrar DNS setups allow you to do this at the DNS level with forwarding there though.
mickopla
Posts: 119
Joined: Mon 11 Oct 2010 7:56 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7

Re: Sending Data to 2 web servers

Post by mickopla »

mcrossley wrote:I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?
Just like TNET weather said would this be possible if dealing with two separate hosts??? If so how would i do this?

Mick
Post Reply