Masking site's domain: Is it making it slower? - .htaccess

I own a domain in godaddy (rainychat.com), and i have a node/socket.io chat app hosted in openshift on a domain provided by them (rainychat-jgal.rhcloud.com)
I'm using "forwarding with masking" configuration on godaddy to make it so when a user enters rainychat.com, godaddy forwards the user to rainychat-jgal.rhcloud.com, but with the user seeing rainychat.com in the browser (You can try that now if you want).
My question is: As this is a chat app, is the user constantly going through godaddy first to reach my app because of the masking? I don't want my app to be slower because of this configuration. Is this the correct way to permanently direct a user to the site while still showing rainychat.com in the browser, or should i mess with DNS registery? Can i use .htaccess maybe?

Related

How to serve some other site in the browser using my server

I have my own server with the domain abc.com. I want to load some other site e.g xyz.com when users visit my website abc.com. I don't want to load xyz.com in an iframe.
I know one website which is doing something like this. The purpose of doing this is to share account access with others without sharing the password.
You might want to use a Proxy Server, such as Nginx. It allows you to accept the requests to the domain abc.com and forward those requests to the domain xyz.com.
Reference to Nginx Proxy configuration is here.

Redirect https URL to another https URL for the same Azure App Service

This might be a stupid question, and for that I'm sorry, I'm not well-versed in DNS configurations (so perhaps I shouldn't be meddling in this, lol), but anyhow..
I have a web app running in Azure that is currently undergoing a bit of a name change. Therefore, I want to redirect users trying to access my domain to another domain, let's say https://example.com to https://subdomain.anotherexample.com. I own both domains and have certificates for both of them, but I cannot for the life of me understand how (or if its even possible) to redirect users in this way?
I have both URLs configured as A records for the underlying IPv4 adress, and have tried to configure a re-direct in my cPanel to redirect the domain example.com to https://subdomain.anotherexample.com, but if I try to access https://example.com it just complains that the certificate is from another provider (not my Azure certificate, but instead my web hosting certificate used for other sites). Both URLs are set up as custom domains for the same app service in Azure with SNI SSL certificate bindings where example.com is bound to a standard certificate for that specific domain, while subdomain.anotherexample.com is bound to a wildcard certificate for *.anotherexample.com.
I assume there must be something that's not allowed in trying to redirect between two different domains where https is involved because trying to access http://example.com works (i.e. it re-directs to https://subdomain.anotherexample.com). Do I have to write some kind of script server-side that re-directs users manually?

Redirect add-on website from https to http

I have 2 websites in my hosting account at bluehost. The main domain (maindomain.com) has an SSL and there is one registration page where I need to use https//www.maindomain.com.
I also have an add-on domain (addondomain.com) and am hosting the website for that in the same account. There is no necessity for a secure connection.
However, I want to make sure that if https://addonsite.com is used, it redirects to http://addonsite.com. The reason is that now if you go to https://addonsite.com, it shows that in the URL address window, but the maindomain.com website loads.
I have tried adding redirects to both .htaccess files (for maindomain.com and addondomain.com), but cannot seem to get it to work. Is it possible to do this with a main domain and add on domain if there is an SSL on the main domain?

How can I access multiple IIS sites with redirects from a mobile device?

I would like to do some tablet testing on a website I have. The website has two parts, both in separate projects.
Main site:
platform.local.samplesite.com
SSO site:
sso.local.samplesite.com
The issue:
I can access the main website remotely by ip. When redirected to the login, it tries to hit 'sso.local.samplesite.com', and cannot find that remotely, as it only knows the computer ip set to the main platform site.
General navigation would be:
Hit platform -> Get redirected to SSO site -> Sign in -> Get passed back and land on the main page of platform, all logged in
Currently I can hit the main platform site by adding a binding of HTTPS, IP Address all unassigned, using SSL certificate, and no host name. Then, from the mobile device, I hit the computer's IP address. This successfully gets me to the platform page, but then I am redirected and the tablet cannot see sso.local.samplesite.com.
Is there any way for me to have them both bound and successfully redirecting?
Would your redirect protocol on sso.local send you to the subsite once login was successful rather than redirecting back to the root site? This in theory would bypass your redirection, assuming you've set the redirection at server level bound to the domain?

Why do I get a 401.1 response for a website with Anonymous access enabled?

I have a Windows 2003 web server that is serving up 3 public-facing websites via IIS6. The all run under the Default App Pool.
I have added a new, very simple, one page website to serve as a "Maintenance" website. It is setup with anonymous access enabled, and all 404 errors redirect to /index.html.
I basically stop the other 3 websites and start the Maintenance website when it is needed.
The other three websites function normally all day long.
However, the Maintenance website presents users with a login credentials dialog and/or responds with a 401.1 code. I tried adding the IIS_USR account to the directory security with Read and Read & Execute access, but I still have the same result.
I have a very similar setup on three other servers, which serve up additional public-facing websites.
What is going on and how can I fix this?

Resources