Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya,
To set up the forwarding of your SSH panel from your Iran VPS to your DigitalOcean VPS using a web URL, you can use a reverse proxy setup. Since you mentioned your SSH panel is running with Apache, you can configure Apache on your Iran VPS to act as a reverse proxy that forwards requests from t1.domain.com/p to t2.domain.com/p.
Here’s a step-by-step guide on how to do this:
First, you need to ensure that the necessary proxy modules are enabled in Apache on your Iran VPS. You can do this by running the following commands:
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_balancer
sudo a2enmod lbmethod_byrequests
sudo systemctl restart apache2
Next, you’ll need to create or edit a virtual host file for t1.domain.com. Here’s how you can set it up:
t1.domain.com, you can create one:sudo nano /etc/apache2/sites-available/t1.domain.com.conf
<VirtualHost *:80>
ServerName t1.domain.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass "/p" "http://t2.domain.com/p"
ProxyPassReverse "/p" "http://t2.domain.com/p"
ErrorLog ${APACHE_LOG_DIR}/t1.domain.com_error.log
CustomLog ${APACHE_LOG_DIR}/t1.domain.com_access.log combined
</VirtualHost>
This configuration tells Apache to forward any requests for t1.domain.com/p to t2.domain.com/p, while also handling the response headers so that the client’s browser behaves as if it were communicating directly with the origin server.
sudo a2ensite t1.domain.com.conf
sudo systemctl reload apache2
t1.domain.com are correctly pointing to your Iran VPS.