TheDanniCraft
New Pleskian
I've running a server with backend that should be accesed with an reversed proxy.
I've created a new .conf file in /etc/apache2/sites-availabe then I entered the following config:
and copied it into /etc/apache2/sites-enabled.
Then I restarted apache.
But when I open the url only the deafault page appeared.
Now ive seen that Plesk has a nginx reverse proxy pluggin. I downloaded and installed it.
Only in the folder where the nginx files are located, the corresponding order(sites-availibe and sites-enabled) is missing.
Now I do't know how to setup the reverse proxy.
I've created a new .conf file in /etc/apache2/sites-availabe then I entered the following config:
<VirtualHost _default_:80>
ServerName panel.example.com
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule .* ws://localhost:8080%{REQUEST_URI} [P]
</VirtualHost>
and copied it into /etc/apache2/sites-enabled.
Then I restarted apache.
But when I open the url only the deafault page appeared.
Now ive seen that Plesk has a nginx reverse proxy pluggin. I downloaded and installed it.
Only in the folder where the nginx files are located, the corresponding order(sites-availibe and sites-enabled) is missing.
Now I do't know how to setup the reverse proxy.