geeky notes on web (drupal) and .net (c#) programming, whichever prevails at the moment

 

All commits tagged "vps"

 

How to configure a private proxy on your VPS

VPS hosting is very configurable. One can do things that were not imaginable before. One of such cool things is your own private proxy server.

Whether you need to do some things anonymously in internet, or you want to see how does a landing page looks, of an affiliate marketing offer, accessible only from a country you are not living in, but your VPS server is...

This is exactly the situation a felt myself in last couple of weeks, I was using internet proxy web pages, like hacksurfing.com or any other, but they are not always working correctly. Imagine, that the affiliate redirect link contains a little more complicated redirecting link done in javascript, which is far too much for hacksurfing to parse, and there is completely nothing you can do about that. (If you don't have a VPS, of course)

Lately I've been trying to find out how to configure a proxy on my JaguarPC VPS.

I have found some articles on internet but they were too common for me.

Here is a complete solution for you...

Configuration of apache private proxy on VPS

On JaguarPC VPS we have apache httpd service, and I think this private proxy configuration will work for anyone with apache. I have a plesk configuration, but I guess that doesn't matter, the private proxy is configured at apache level.

vi your apache configuration file /etc/httpd/conf/httpd.conf

find the proxy section which starts with ‹IfModule mod_proxy.c›. If you are reading this article, then probably that whole section in that file is commented out. Uncomment it. That's it, for a first step.

But...

It might not be wise to leave this proxy open to everyone, because it will be immediately used by hackers to hide their identity and do their evil plans :). Who will be guilty in this case? You, of course!

So we have to add this code: "Allow from 127.0.0.1" into that section. Meaning that traffic is allowed from local host only.

restart the httpd deamon: "apachectl -k restart"

Here is how that private proxy configuration section should look at the end:

‹IfModule mod_proxy.c›
        ProxyRequests On
        ‹Proxy *›
                Order deny,allow
                Deny from all
                Allow from 127.0.0.1
        ‹/Proxy›
         ProxyVia Block
‹/IfModule›

note that I used ProxyVia Block, which tells the private proxy server not to tell anyone that it is a proxy. I don't really know whether it's really important, but I like things look real :)

We are going to access the proxy via ssh tunnel, using a ssh program that supports tunnels. I always recommend putty, it really has everything!

So, open PuTTY, type your vps server's name in the host and go to tunnels section of putty's interface. Configure the tunnel so it maps your local port, let's say 8080, to remote http port: 80.
it should read:

source port: 8080
destination: localhost:80

When you connect to your VPS server with these settings, it will create a secure data tunnel, which we will use to access our private proxy configured at our VPS.

In your web browser, go to proxy servers configuration and type localhost:8080 as the proxy server name.

That's it!

When you visit some page, your browser goes through the secure tunnel made between putty and vps, then the data comes out of the tunnel at remote port 80, which is then correctly handled by the private proxy we've configured before!

 

Choosing the right VPS plan: Jaguar PC hosting, VPS review (VPS discovery plan)

A few words about hosting again, this time about JaguarPC

During last two years I have been jumping from one hosting company to another and actually I've got pretty tired of that. Through all this time my own personal development in the field of internet money making was actively progressing especially during last half a year, resulting in a very comfortable state, when the sites I am dealing with are finally able to pay for themselves, so I have decided that these sites can afford themselves something better.

Cyber Ultra Network was the best hosting so far and still is, their price/performance level was superb, so I am still recommending them to everybody who is searching for a good shared inexpensive hosting... It has a lot of features and still not expensive (3.95$/month)

As I needed more control and also perfect uptime (say, 99.99% a year), the idea of some good VPS hosting was always flying above me, so during last three months I was actively researching this area of internet.

That wasn't an easy task - the market is full of VPS hosting providers!

Another thing is that I had no idea what kind of difficulties I could ran into after I would transfer my sites to VPS, but man, sooner or later it had to happen! So after a lot of research there was a winner

And the winner was the JaguarPC Hosting Company and their VPS discovery plan.

They are affordable, they had mostly good recommendations and what I liked the most, they have their own helping community! This is the only web hosting company I have seen, that has this feature.

The last drop for me was the promotion they had for the last week of august, which I almost missed, there was only two days left but yes, that has really made the final drop.

Originally for the price 19.97$ per month you get fully managed service, 10Gb of space on hard drive, 150Gb bandwidth, 128Mb RAM and 100% uptime guarantee.

The promotional package was a "little" better: 192Mb RAM, 20 Gb HDD and two free months. Impressive? I thought so too, so I decided to try and if something goes wrong they have 30 days moneyback guarantee.

First two weeks I was playing a bit here and there, trying the shiny new VPS, exploring plesk panel and checking whether I could do at least the same I could do in my shared hosting account.

The overall impression is like you own your own server somewhere there on the other side of the world (I live in Europe). You can do whatever you like and nobody on the same physical server hosted together with your account can influence you either by memory, bandwidth or even processor. The response time comparing with shared hosting is superb. Database speed is unbelievable. I am hosting a number of Drupal sites including this one and I can say they are flying now!

By default JaguarPC gives you 3 dedicated IPS, and you can do anything with them! Typically one IP is for hosting and the other two are for your own private name servers. That was something new for me. With the private name servers you can do any DNS operations including setting all DNS records (A, MX, etc) and even changing their life time, very useful when you plan some big change!

That is the power, I personally think that I can not live without anymore!..

I have moved all my sites to this VPS hosting and so far the functionality, quality and also support team were very good. If I exclude the downtime caused by my own lack of DNS knowledge the sites have had 100% uptime.

If you liked this VPS review and want to try yourself in "god mode" :) My recommendations!. You'll definitely like it!

Updated. They have a promotion again! It is even better than the package I currently have. It includes: 25 GB diskspace, 300 MB bandwidth, double guaranteed RAM (256 MB) for -10% of price ($17.97 /month), (I am talking about beginner's package, there are more). The promotion expires pretty soon, so try it now, especially if you're new to VPS! (Use JaguarPC coupon code "VPS10YRS")

Please feel free to ask questions, as the person who has learned something a month ago will answer them more enthusiastically than the one that had been using VPS for years! :)

}