Steps taken a) get a droplet with plesk from digital ocean b) create a conf file in /etc/apache2/sites-available/ c)add the custom ports on /etc/apache2/ports.conf d)Enable the conf file with apache a2ensite e) restart apache2
We have been trying to set up virtual hosts on apache2 for my ubuntu digital ocean droplet so that it can pick up ssl on ports.What we mean is we would like different users to access my application on ports for example one client would be on example.com:3490 another would be on example.com:3491 . We are utilizing proxy pass and reverse proxy.We are using this config for our vitual host with conf file
<IfModule mod_ssl.c> <VirtualHost *:2095> ServerName example.com ServerAlias * DocumentRoot /var/www/html SSLProxyEngine on SSLEngine On SSLCertificateFile /etc/ssl/certs/example.com.pem SSLCertificateKeyFile /etc/ssl/private/example.com.key
<Proxy *> Allow from all </Proxy> ProxyPass / http://serverIP:1095/ ProxyPassReverse / http:/serverIP:1095/ ProxyPreserveHost On RequestHeader set X-Forwarded-Proto: "https" </VirtualHost> </IfModule>
/////////////////////////////////////////////////////// we then add the ports to the ports.conf file and enable the site using apache a2ensite however when we try access the domain example.com:2095 we get an error but if we go to example.com the domain is present and fully secured so we do not get what we are doing wrong Lastly we also have a plesk panel on this droplet
we have checked my apache2 logs and everything seems fine kindly help
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!