I have a domain with Namecheap that I would like to point to my IBM Bluemix app. I have tried masked redirection: this just places the Bluemix app in an iframe. The issue with that is that when the user clicks a link in the app, the URL in the bar doesn't change (only the iframe path changes). Additionally, if I use unmasked redirection, then the URL simply changes to the Bluemix URL (appname.mybluemix.net). What can I do? Is it possible to point my domain to Bluemix's name-servers? How can I get my app to behave like it resides at the domain (No iframe, and no URL change). Is this even possible with Bluemix?
Thank you,
--
You can't it with Namecheap (Url cloacking) and URL Frame is bad for SEO.
You can use a custom domain for your Bluemix Application. The documentation is here: https://www.ng.bluemix.net/docs/manageapps/updatingapps.html and here: https://www.ng.bluemix.net/docs/manageapps/securingapps.html
Related
I have existing app that runs on Heroku. It's a simple web app with no background jobs or database.
Basically it has three endpoints. One of them serves the HTML, the other is POST endpoint for communicating with backend and third is GET endpoint that renders error HTML content as well.
Now the frontend is not single page application and the goal is not to be one. It's just HTML page with a form and some links. The front end can be used without Javascript.
My questions are:
Can I re-use existing ExpressJS code? I was thinking about importing route callbacks and use them inside the "functions".
I know there is Firebase hosting that can serve static content. However, as I mentioned the server can respond with HTML content so I'd need traditional routing (such as /error url for rendering HTML error). In my ExpressJS app I use .ejs templating so I'd like to load the template and render it.
Can Firebase be set up so the "backend" (functions) can be placed on my own domain? I'd like to call relative URLs from my index file (like that POST endpoint) instead of using Google Firebase URL.
I'm really just trying to find out if my use case can fit the Firebase infrastructure. I think it's a good candidate since I need the web app to respond infrequently and it's not really demanding, not many people would use it. This is also my hobby project so I'm trying to minimize costs.
To answer your questions:
Yes you can, but keep in mind some things are limited. In my case, I had tried to use multer library for multipart forms but didn't work and had to resort to using busboy instead. To use an Express app for a function endpoint, you simply just pass your app as the onRequest function parameter like so: functions.https.onRequest(app).
Docs:
https://firebase.google.com/docs/functions/http-events#using_existing_express_apps
The hosting is for static files only. You can't use that with .ejs. Unless, you're thinking to use that as a proxy to your Express app..
Yes, you can set custom domains so you can use your domain(s) instead of default ones. Reference: https://firebase.google.com/docs/hosting/custom-domain
From your project's Hosting page, enter the wizard for connecting a custom domain:
If you have only one Hosting site, click Connect domain.
If you have more than one Hosting site, click View for the desired site, then click Connect domain.
Enter the custom domain name that you'd like to connect to your Hosting site.
(Optional) Check the box to redirect all requests on the custom domain
to a second specified domain (such that yourdomain.com and
www.yourdomain.com redirect to the same content).
Click Continue to initiate the validation process.
The question applies to only Google Sites New (version) as it currently doesn't support web URL mapping. More info here under section Web address mapping :
https://support.google.com/a/answer/7198710?hl=en&ref_topic=6399171
So I made my site publicly available and can access it via the sites URL. I then did a 302 URL forwarding in my domain DNS so if I type in the domain.com it gets redirected to sites URL -- All good so far.
My question is how come some users are managed to have their URL showing up in Google results. Example Query in Google :
https://www.google.com.au/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#newwindow=1&q=Made+with+the+new+Google+Sites%2C+an+effortless+way+to+create+beautiful+sites.
you will see some sites for example
These sites - ArchSci2020 and Mr. Arnote's new google Site have their URL displayed and Title doesn't contain the word Google Sites. Example if you try the following query where I am looking for the footer phrase
https://www.google.com.au/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#newwindow=1&q=%22Made+with+the+new+Google+Sites%2C+an+effortless+way+to+create+beautiful+sites%22
I am using Google Domains and it only allow URL forwarding -- what are they doing differently?
Thanks.
I think they are indexed by Google with their real domain name because they use iframes or invisibles redirects configured in their registrar panels like Namecheap (for mrarnote.com for example).
According to Namecheap support:
Recently, Google has released a NEW version of Google Sites (it can be accessed through https://sites.google.com/new), however, it has no option to use a custom domain with it. If you still would like to use this version of sites with your domain, you may set up the connection via URL forwarding (more detailed instruction on how to set up the URL forwarding can be found in this article)
I am running my APP on Heroku with a name: http://appname.herokuapp.com
Now I have a personal domain: http://www.appname.com
I managed to post my personal domain to heroku name successfully. So when people visit http://www.appname.com, they will be redirected to http://appname.herokuapp.com.
However, the domain path is not displayed. For example, if I have a link on http://appname.herokuapp.com/path/to/destination, I can get that page, but the domain name is always showing http://www.appname.com which is supposed to be http://www.appname.com/path/to/destination.
My APP is written in NodeJS, so if necessary , I can change the route function inside.
Thanks
Derek
You are probably using silent redirects/forwarding features of your domain registrar, which will not work for URL paths. You need to use/configure a DNS server to perform the routing. In your case simply create a CNAME DNS record from www.appname.com to appname.herokuapp.com
There has been a question made towards me recently to do the following:
We have a website with Drupal running in IIS.
On that site is an URL Redirect to a website hosted externally, obviously with a name completely irrelevant to the name of our company.
The question now is the following;
They want to change to URL to a subdomain of our website. Example: from "www.external-site.com" to "www.sub.internal.com" (while still showing content of the external website)
They want the current page of that website to be reflected in the URL bar. So it wouldn't say "www.sub.internal.com", but it would say "www.sub.internal.com/solutions/page1.html" (instead of "www.external-site.com/solutions/page1.html")
It's possible that I forgot another 'condition' but have mentioned before this.
So, if someone visits through our URL Redirect to External-website, it needs to show our subdomain instead of their domain in the URL, AND it needs to show the current page when people start browsing while still using our subdomain in the URL.
Now, I checked the external-website, and it seems that most of the links available are relative links (if this would be any useful information).
Currently, the external website is hosted externally, and will remain to be so for next few years. (I believe we bought the company)
I have been asking around and looking up, and the best possible thing seems to use domain forwarding, but even then it still doesn't seem to comply with the entirety that they asked of me.
I am but a 'simple' .NET programmer, held responsible to do support for anything involving the websites, and I can't say I have extended knowledge about infrastructure. (But I can ask people to do this for me)
Is there anything that could solve this?
Thanks so much!
IIS's URL rewite and Application Request Routing (ARR) combo can help you what you want to achive. Here are few links which may guide you to configure ARR. Please note that these links dont exibit exact solution to your problem however you can take clue from it and fabricate your solution accordingly.
http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing
http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-rule-template
It sounds like you'll want to use a full-page iframe: do not redirect but show a page with an "inner page" instead: that inner page is the external web site. That way, users do not see the external site in their URL bar.
http://webdesign.about.com/od/iframes/a/aaiframe.htm
You need to configure the equivalent of Apache Virtual Host with Reverse Proxy on IIS.
See this answers:
https://serverfault.com/a/271030
and
https://stackoverflow.com/a/10003306/2131693
Since 1st Oct is coming. I am working on Secure Canvas URL stuff.
My canvas url is like canvas.example.com. I can make this domain and server SSL ready without a problem.
My question is, should every http request made by canvas.example.com also change to https?
e.g. I import some JS, CSS, images from cdn.example.com to my canvas page, should i configure cdn.example.com alos can be accessed via https, or I can just leave this domain alone, still use http to get those content?
thank you very much.
You should make all content served over https or the browser will show warnings.
Facebook policies clearly mention that all the Page Tabs and iFrame Applications shal have an SSL certificate..
Any external content like images and JS included on your site shall also come from secured hostings hence the Https:// else your shall not be complying to FB Policies..
Gives the fact that FB has been very strict on punishing defaulters i dont think any app developer can take risk ..