# Proxy System Settings still active in MODX3?

**URL:** <https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583>\
**Category:** Support\
**Tags:** settings, revo-3\
**Created:** [March 2, 2024, 3:21pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583 "2024-03-02T15:21:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jenswittmann](https://community.modx.com/user_avatar/community.modx.com/jenswittmann/32/3581_2.png) [@jenswittmann](https://community.modx.com/u/jenswittmann)\
**Post date:** [March 2, 2024, 3:21pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/1 "2024-03-02T15:21:17Z")

</div>

### Summary

I try to use _proxy\_host_ and _proxy\_port_ System Settings, but the Package Manager doesn’t work behind a Proxy. Is it still active in MODX3? When looking into the code, it doesn’t seems so: [Code search results · GitHub](https://github.com/search?q=proxy_host+repo%3Amodxcms%2Frevolution&type=code&ref=advsearch&p=1)

### Step to reproduce

Set Proxy via System Settings and try to install/update an Extra via Package Installer in the Manager.

### Observed behavior

Package Installer don’t work with/without Proxy Settings and don’t get remote data.

### Expected behavior

Package Installer should work with Proxy Settings to search and update Extras.

### Environment

MODX 3.0.4, Apache, CURL active  
Example Script with CURL/file\_get\_contents works when set with Proxy options.

---

<div class="post-metadata">

**Author:** ![halftrainedharry](https://community.modx.com/user_avatar/community.modx.com/halftrainedharry/32/1063_2.png) [@halftrainedharry](https://community.modx.com/u/halftrainedharry)\
**Post date:** [March 2, 2024, 8:59pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/2 "2024-03-02T20:59:59Z")

</div>

In MODX 2.x the system setting _proxy\_host_ was used by the class `modRestCurlClient`.

> <https://github.com/modxcms/revolution/blob/6406c9ea30a5c9e8d1aad9b9bc512e920268a779/core/model/modx/rest/modrestcurlclient.class.php#L184>

In MODX 3, `modRestClient` was [removed and replaced](https://docs.modx.com/3.x/en/getting-started/upgrading-to-3.0/breaking-changes).  
And it looks like the proxy settings are now ignored.

---

<div class="post-metadata">

**Author:** ![jenswittmann](https://community.modx.com/user_avatar/community.modx.com/jenswittmann/32/3581_2.png) [@jenswittmann](https://community.modx.com/u/jenswittmann)\
**Post date:** [March 2, 2024, 11:52pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/3 "2024-03-02T23:52:15Z")

</div>

Thank you @halftrainedharry.

I found it only here, where it uses CURL and not the new PSR-7 Service: [revolution/core/src/Revolution/Transport/modTransportPackage.php at f197da76b44645172dc3f0eb721961fd4f534c04 · modxcms/revolution · GitHub](https://github.com/modxcms/revolution/blob/f197da76b44645172dc3f0eb721961fd4f534c04/core/src/Revolution/Transport/modTransportPackage.php#L430)  
Maybe this must be refactored or deleted? 🤔

So for now i get some questions on this:

- If the Proxy Settings aren’t avaible on MODX3, should we communicate it in the Docs or inside the System Settings Description? In my case, we upgraded from 2.6.5 to 3.0.4. If i know it earlier, maybe i only upgrade until 2.8.6 to use the Proxy without breaking Changes.
- Is it possible to add the Proxy back to PSR-7? Maybe a question for @markh.
- We run MODX on an Windows Apache Server locally as an Intranet Website and need to go through a Proxy for remote Requests. Maybe its oldschool to define the Proxy Settings inside MODX and would be better to add the Proxy on the Apache Level? But i don’t have any Experience on that. If anyone had, i’m very happy to get some ideas.

---

<div class="post-metadata">

**Author:** ![markh](https://community.modx.com/user_avatar/community.modx.com/markh/32/36_2.png) [@markh](https://community.modx.com/u/markh)\
**Post date:** [March 5, 2024, 2:21pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/4 "2024-03-05T14:21:06Z")

</div>

> [@jenswittmann](#):
>
> Is it possible to add the Proxy back to PSR-7? Maybe a question for @markh.

I’ve never had to use the proxy functionality so wouldn’t even know where to begin to test it, but [there do seem to be approaches out there using middleware](https://dev98.de/2019/06/19/request-data-through-a-proxy-with-guzzlehttp-psr-7-compliant/).

---

<div class="post-metadata">

**Author:** ![jenswittmann](https://community.modx.com/user_avatar/community.modx.com/jenswittmann/32/3581_2.png) [@jenswittmann](https://community.modx.com/u/jenswittmann)\
**Post date:** [March 5, 2024, 4:17pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/5 "2024-03-05T16:17:15Z")

</div>

Thanks @markh! I update ParseX and UpgradeMODX to use Proxy inside PHP code. But this is not future proof and get deleted ob update 😀 For now we disable the Proxy to make MODX work again. I close this, because there are more important things to work on 😜

---

<div class="post-metadata">

**Author:** ![system](https://community.modx.com/user_avatar/community.modx.com/system/32/2_2.png) [@system](https://community.modx.com/u/system)\
**Post date:** [March 7, 2024, 4:17pm UTC](https://community.modx.com/t/proxy-system-settings-still-active-in-modx3/7583/6 "2024-03-07T16:17:57Z")

</div>

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.
