• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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