Here's a configuration example which assumes you're using an Apache server.
For many *nix systems, the config files are at /etc/apache2/

<VirtualHost PUT_SERVER_IP_ADDRESS_HERE:80>
 ServerName www.company.com
 Redirect 301 / http://company.com/
</VirtualHost>
If you don't want to muck with web server config's - then you could handle it within ColdFusion's onRequestStart function (looking at the host name and doing a cflocation if it's wrong) but that method would involve the CF server before it's really needed. Not as scalable.

Al Holden


On 5/22/2013 6:54 PM, Jason Allen wrote:
Hi Guys, 

I'm using OpenBD w/tomcat on Windows 2008. 

I have a domain name ie company.com

Both www.company.com and company.com resolve to the same website. 

I have some jQuery based forms that use jSON via some cfcs. Problem is, if someone goes to www.company.com, that's the url it uses until they click on something (all my links are just 'company.com'). The reason this is a problem is that if they try using any of the forms without hitting any links, their host is 'www.company.com' and all my json queries are referencing 'company.com', which essentially blocks the jSON requests due to ' not allowed by Access-Control-Allow-Origin. ' errors.

My question is, how can I get a request to www.company.com to actually resolve immediately to company.com in the browser? Can this be done via dns at my provider? Or is there a tomcact/bluedragon setting?

Thanks!


--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to