Skip to main content

Allow nginx to act as a reverse proxy

·43 words·1 min· loading
Snippet Selinux Nginx
Anastasios Selalmazidis
Author
Anastasios Selalmazidis
🐧 /dev/null
Table of Contents

Allow Nginx to Make Outbound Connections
#

Run this command to allow nginx to act as a reverse proxy:

$ sudo setsebool -P httpd_can_network_connect on

  • P → Makes the change persistent across reboots.
  • This allows all outbound connections from nginx (needed for proxy_pass).