Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue Jun 18, 2013 5:59 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 1:01 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
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

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 8:56 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2594
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
I may be missing something, but couldn't you just alter your DNS entries so that both domain names point to the same server?

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 8:58 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1698
Location: World...
Weather Station: No weather station
Operating System: No operating system
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... ;)


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Tue Jan 31, 2012 4:43 pm 
Offline
User avatar

Joined: Wed Sep 17, 2008 1:34 pm
Posts: 629
Location: Mesa, AZ USA
Weather Station: Davis VP2 Plus w/24 FARS
Operating System: WinX Pro SP3 Dedicated wstn
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.

_________________
Kevin
Image
All you need is Time, Aptitude and Desire ... and you can build just about anything...
Cumulus User Maps


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 6:02 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
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

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 7:09 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1698
Location: World...
Weather Station: No weather station
Operating System: No operating system
Mick, another question: Why do you need to host your domains on two different hosts?


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 8:32 am 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
Ray - depending on what is primarily being hosted some hosts provide better services for different types of data. For example - we use 3 different hosts - one for photography/images (they have a better deal for space/bandwidth/speed but don't require many multiple connections), another for sporting information/results/news (doesn't need speed but can handle high volume connections) and another for family history site(s) (better than the other two for large - read huge - MySQL database access).

Horses for courses.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 8:48 am 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2594
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
mickopla wrote:
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
Hi Mick, I just wondered why if the sites are identical apart from the domain name you need them on separate hosts in the first place? Just have one host with the two domain names pointing to the same server. But like I said I may be missing some vital detail.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 1:08 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
mcrossley wrote:
mickopla wrote:
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
Hi Mick, I just wondered why if the sites are identical apart from the domain name you need them on separate hosts in the first place? Just have one host with the two domain names pointing to the same server. But like I said I may be missing some vital detail.


Rightly or wrongly i thought that if i wanted to add a domain to my original host i would have to pay them extra. This made me look for a free hosting service hence using 2 different servers. Maybe my original host would allow me to add a domain for free. I honestly don't know and would have to check with them. If i did transfer the domain to my original host how would i alter the DNS entries so that both domain names point to the same server?

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 1:50 pm 
Offline
User avatar

Joined: Thu Jan 07, 2010 9:44 pm
Posts: 2594
Location: Wilmslow, Cheshire, UK
Weather Station: Davis VP2
Operating System: XP SP3, Win 7
Who 'hosts' the domain name is independent of where the DNS entry for that domain points (in all the cases I have come across anyway). None of my web sites are 'hosted' by the company that maintains my domain names - they just give me a control panel where I can configure the DNS entries as I wish).

Another method to combine the sites (if you have access to configure it) is to configure the web server to send a '301' server side redirect to the client. This is the most efficient mechanism for redirecting (the client does not download any HTML), and you can redirect all the pages on a site with a single configuration entry.

_________________
Mark
Wilmslow Astro Weather


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 2:00 pm 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
mcrossley wrote:
Who 'hosts' the domain name is independent of where the DNS entry for that domain points (in all the cases I have come across anyway). None of my web sites are 'hosted' by the company that maintains my domain names - they just give me a control panel where I can configure the DNS entries as I wish).

Another method to combine the sites (if you have access to configure it) is to configure the web server to send a '301' server side redirect to the client. This is the most efficient mechanism for redirecting (the client does not download any HTML), and you can redirect all the pages on a site with a single configuration entry.


My knowledge on servers and commands is not great but i guess its a good way to learn.

Edit: Trying to get my head around this. What would the procedure be if i want the http://www.waterfordcityweather.com/index.php to show up as http://www.waterfordweather.com and have all the content on the page? Basically what i want is for people who click on waterfordweather.com to get the content from http://www.waterfordcityweather.com/index.php

Edit 2: Ok i figure i need to create a htaccess file with the command included. What command would i use to redirect www.waterfordcityweather.com/index.php to www.waterfordweather.com ? You guys know your stuff so hopefully you can help.

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Wed Feb 01, 2012 8:25 pm 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
[quote="mickoplaRightly or wrongly i thought that if i wanted to add a domain to my original host i would have to pay them extra. This made me look for a free hosting service hence using 2 different servers. Maybe my original host would allow me to add a domain for free. I honestly don't know and would have to check with them. If i did transfer the domain to my original host how would i alter the DNS entries so that both domain names point to the same server?[/quote]
Some hosts will allow you to host 1 or more domans under a package - the more you pay, usually, the more you pay. Some hosts will also allow you to 'park' a fomain as well - again, 1 or more may be allowed. What this does is allow you to own a domain (example.com say) and, if anyone goes to that page, a static page is displayed (this may be pre-configureed by your host or they allow you to do so) but it won't allow you to place multiple pages on that site.

Generally the free hosting companies allow one domain name and nothing more.

Host companies have no control (well as long as you have read their T&C's) over where the DNS entry points - that is done with whoever you are paying for the registration of your domain name. So, with the previous example I gave of some of my sites, they are all registered with one registration company and I set the name servers to point to whichever host company is hosting each web site (if this makes sense).

Be very careful, though, if you do have two domain names that share a commo set of pages. You could very easily get lost with links on your pages going to the wrong site if you aren't careful.

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
 Post subject: Re: Sending Data to 2 web servers
PostPosted: Thu Feb 02, 2012 5:24 am 
Offline

Joined: Mon Oct 11, 2010 7:56 pm
Posts: 115
Weather Station: Davis Vantage Vue
Operating System: Windows 7
Would this code work for me??

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !waterfordcityweather.com/index.php$ [NC]
RewriteRule ^(.*)$ http://www.waterfordweather.com/$1 [L,R=301]

_________________
Imagehttp://www.waterfordweather.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group