• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How to use a DMZ Proxy with linux plesk

MikeSand

New Pleskian
Plesk support kept asked me to: "set it in the operating system." It turns out it was in their software configs.


Edit the file:
/etc/sw-engine/pool.d/plesk.conf

add the http_proxy, https_proxy variables, and no_proxy in the following format
for this example my proxy is called "myproxy.myhost" and its on port 8080


Code:
; for this example my proxy is called "myproxy.myhost" and its on port 8080
; and my ipaddress is 192.168.1.10
; and my hostname is myhost.mydomain
; the no_proxy is needed so that previews work

env[http_proxy] = 'myproxy.myhost:8080'
env[https_proxy] = 'myproxy.myhost:8080'
env[no_proxy] = '127.0.0.1,192.168.1.10,myhost.mydomain,myhost,.mydomain'


You can then restart the "sw-engine" with the command

Code:
pushd /etc/init.d;for x in sw*; do service $x restart; done; popd
 
Back
Top