Is it possible to host conversion.js file on our own server? we don't want to use "https://www.googleadservices.com/pagead/conversion.js" to host it. I couldn't find the answer in google forums. The code is to track google adwords.
Yes it is possible, but you should use some .php in back-end to update it regularly and by hosting it localy you will lose all advantages of Google CDN.
Related
i have a wordpress website, i would like the client to view the website but i do not want to go through all the trouble of uploading the files and database to the server online, so i looked around and found some tunneling software that worked for me. However the issue i am now having is when the website is loaded from another PC, the css and images are not loaded because they all have their urls set to localhost. I read around and saw a lot of fancy words like url forwarding changing somethings in httpd-vhosts.conf etc. Unfortunately i do not know much abbout networking to understand all these concepts.
Basically what i would like to know is is there a way to make my images and css load on the clients pc even though the urls are set to locahost?
Or if anyone has another way i can show a client a website from my localhost.
I tried both pagekite and ngroks thanks in advance :)
You need to add one of the following plugins to Wordpress to force it to use relative URLs:
https://github.com/optimizamx/odt-relative-urls
http://wordpress.org/plugins/relative-url/
http://wordpress.org/plugins/root-relative-urls/
I guess it would be far better to host your site on a free web hosting service to show your client the website you created in one piece but make sure that the service provider provides everything that your website needs.
I am calling a number of apis of a web service hosted on a number of servers. Requests get routed to these servers at random through a load balancer.
All these servers reside on my local network and I want one particular api call to go to one particular server.
Since I don't want other requests to get affected, I am unwilling to put a host entry on the server hosting my app.
Can this be achieved through code?
I am coding in ruby and using net-http gem to make api calls.
Any implementation using curb gem is also welcome.
Thanks
-Azitabh
I think the best way to achieve what you want is to use a proxy with DNS Spoofing.
Charles proxy does that but there might be other tools also.
One way(on the same lines as suggested by systho) I can think of is to make the api call directly using the IP and create a vhost on the server which is listening directly on a separate port.
This will work for me purely because of the fact that I have access to the servers hosting the web service.
Im struggling to find an answer to this. I have a website that is deployed in a shared hosting environment. I want to allow people to upload files to my azure blob storage account.
I have this working locally, using the storage emulator, however when I publish the site I get a Security Exception.
Is this actually possible under a shared hosting envrionment ?
Cheers
A bit more detail would help, in understanding how these uploads are taking place. That said, I'll make the assumption that people are uploading directly to Blob Storage, and not through your Website (or Web Service).
To allow direct uploads, you need to provide either a public blob or container (which everyone in the world can see), or create a temporary Shared Access Signature (SAS) on a specific blob or container, that grants access for a short time window.
If your app is Silverlight, then you are probably running into a cross-domain issue (and you'll need to correct that with an access policy).
If you provide more details around the way uploads are being sent, as well as the client and server technology, I can edit my answer to be more specific.
I'm trying to deploy my Reporting Services application to a remote site. I'm using url access and I want to impersonate a user based on an ip address range.
Is this possible?
Maybe by putting some firewall rules between the reports server and the client you could stop deny/allow certain ip addresses, but i've never come across anything like that built into reporting services
There isn't anything like that built into Reporting Services. But I can think of a couple of alternatives.
Usually the Reporting Services website and web service are running under IIS. You can configure IIS to block access by IP address. Depending on what version of IIS you are using, the instruction may vary. I would just google it. This would be the easiest way in my opinion.
First thing to note is that I haven't tested the second way, it is just an idea. Since the Reporting Services website and web service run under Asp.Net, in theory you could create a custom IHttpModule and add it to the web.config. Hanselman has an nice article about coding up such a IHttpModule and configuring the web.config here.
This is an old post, but we are trying to do the same thing. Firewall is the way to do it - SSRS doesn't use IIS, so it isn't possible through IIS.
Here's what I mean. In developing my ASP.NET MVC based site, I've managed to offload a great deal of the static file hosting and even some of the "work". Like so:
jQuery for my javascript framework. Instead of hosting it on
my site, I use the Google CDN
Google maps, obviously "offloaded" - no real work being performed on my
server - Google hosted
jQueryUI framework - Google CDN
jQueryUI CSS framework - Google CDN
jQueryUI CSS framework themes - Google CDN
So what I'm asking is this, other than what I've got listed...
What aspects of your sites have you been able to offload, or embed, from outside services?
Couple others that come to mind...
OpenAuth - take much of the authentication process work off your site
Google Wave - when it comes out, take communication work off of your site
In the past I've used Amazon AWS.
Their S3 service was cheap for hosting Images and video.
The EC2 service is also good for additional computational power or just removing load from your server.
In additon to Pay for hosted services you can use Youtube or Vimeo to host videos and they API will allow you to upload and host videos.
There are also APIs for may other services depending on exactly what you're wanting to do. If you looking at adding functionality to your site but without hosting the service it would be worth checking out http://www.programmableweb.com/
Even though Google's CDN has smaller files and faster response times, I'm now using Microsoft's CDN for jQuery. Why? Big Brother.
In some high-security companies, they only allow access to known domains. Users at those companies had problems because their firewalls didn't know googleapis.com, and blocked jQuery. They knew microsoft.com, so ajax.microsoft.com worked.
I've suggested to google that they change their URL from ajax.googleapis.com to something.google.com to avoid the issue in the future.