Next-Gen App & Browser
Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles
A. Configuring a Proxy in System Settings
You can set up a proxy on macOS through system settings or by using a local proxy server.
B. Setting Up a Local Proxy Server (Squid)
brew install squid
Changenano /usr/local/etc/squid.conf
Add:
http_port 3128
sudo brew services start squid
curl -x http://localhost:3128 https://www.google.com
A reverse proxy forwards client requests to backend servers.
A. Using Nginx
brew install nginx
nano /opt/homebrew/etc/nginx/nginx.conf
Add:
server {
listen 8080;
location / {
proxy_pass http://127.0.0.1:5000;
}
}
sudo brew services start nginx
B. Using Apache
sudo apachectl start
sudo nano /etc/apache2/httpd.conf
Uncomment:
LoadModule proxy_module libexec/apache2/mod_proxy.so
LoadModule proxy_http_module libexec/apache2/mod_proxy_http.so
sudo nano /etc/apache2/extra/httpd-vhosts.conf
Add:
<VirtualHost *:8080>
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
</VirtualHost>
sudo apachectl restart
To stop the proxy server:
System Settings: Go to Network > Proxies and disable the proxy.
sudo brew services stop squid
sudo brew services stop nginx
sudo apachectl stop
This will remove the proxy and restore direct network access.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.