Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- *> First of all, we need to buy a DMCA ignored VPS for setup proxy.
- [ Make sure the OS of DMCA ignored VPS is Ubuntu 18.04 or, 20.04 ]
- *> Secondly, we will need a VPS/VDS where we will host our website.
- *> Thirdy, we will require to host our website without any panel.
- [ We can use LAMP/or set up our website standalone, ref: xqZfNbTQ ]
- * Reason for standalone setup: it will save resources like CPU, RAM
- * A positive reason: you may access your website through the IPv4
- Now, make sure to follow the steps to avoid any kind of errors:
- 1. Log in to the DMCA ignored VPS through SSH connection.
- 2. Run the following commands to install the repos/dependencies:
- sudo su
- apt-get update -y
- apt install curl nano nginx screen -y
- unlink /etc/nginx/sites-enabled/default
- [ Details: we are going to install curl, nano & screen as well ]
- * curl is required to check the IPv4: curl -Ls https://ipinfo.io/ip
- * nano is a text editor, we will need it since we will modify a file
- * nginx is required for setting up the proxy on the logged-in server
- * screen is required to execute all CMDs, so that it won't drop data
- Once we followed the above instructions and run the commands, do:
- nano /etc/nginx/sites-available/reverse-proxy.conf
- and put the above entry:
- server {
- listen <PROXY_VPS_IPv4>:443 ssl;
- listen <PROXY_VPS_IPv4>:80 default_server bind;
- access_log /var/log/nginx/reverse-access.log;
- error_log /var/log/nginx/reverse-error.log;
- location / {
- proxy_pass http://<ACTUAL_VPS_IPv4>;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- } client_max_body_size 250m;
- }
- Here, PROXY_VPS_IPv4 means, the IPv4 of DMCA ignored VPS and,
- ACTUAL_VPS_IPv4 means, where (VPS) we have hosted our website.
- To get the correct IPv4, copy & execute the command from the above.
- Now, it's time to replace the IPv4 addresses from the entry.
- Once the IPv4 addresses were replaced save the file: CTRL+X & y
- At the final step:
- ln -sf /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
- nginx -t
- systemctl restart nginx && systemctl status nginx
- The first command will symlink the modified files for access
- The second command is for testing the /etc/nginx/nginx.conf file
- The third command is for restarting the NGINX and checking the status.
- ---
- If you need any help for setting up a proxied server to ignore DMCA,
- do contact me on Telegram: @kh4l3quzz4m4n (charge applicable).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement