Install a proxy web server on Ubuntu 12.04

Asked By 30 points N/A Posted on -


I am running Ubuntu 12.04 And I have internet connection through DSL connection. I Know there is a way to block certain sites just the same way my work place has blocked us from accessing Facebook. So how can I implement this at home? Please provide all steps needed.

Answered By 15 points N/A #172034

Install a proxy web server on Ubuntu 12.04


Hi Sean,
The steps to install nginx proxy web server in Ubuntu 12.04 are as follows:
1) Update the Ubuntu repositories by the following command:
userid:~$ sudo apt -get update
2) Use the following command to install nginx package from repository
userid:~$ sudo apt -get install nginx
3) After installation start the nginx service as
userid:~$ sudo /etc/init.d/nginx start
4) Test nginx server by using the following configuration:
userid:~$ sudo mkdir/usr/share/nginx/www/test
userid:~$ sudo cd/usr/share/nginx/www/test
5) Create a virtual site with the following command:
userid:~$cd /etc/nginx/sites-available
6) Create a file Test and type the following code:
listen 8080;
root /usr/share/nginx/www/test;
7) Enable the virtual site by using the following command:
userid:~$ sudo /etc/nginx/sites-available/test/etc/nginx/sites-enabled/test
8) Restart the nginx service
userid:~$sudo /etc/init.d/nginx restart
9) The proxy server site is created at port 8080 for the user

Login/Register to Answer

Related Questions