Proxy reversible

# NGINX: agregar en /etc/nginx/sites-available/default server { : location /<carpeta> { proxy_pass http://<host>:<port>; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } : } # APACHE2: agregar en /etc/apache2/sites-available/00-default.conf <VirtualHost *:80> : ProxyPass /<carpeta> http://<host>:<port>/ ProxyPassReverse /pacs http://<host>:<port>/ ProxyRequests Off ProxyPreserveHost On <proxy> Order deny,allow Allow from all </proxy> : </VirtualHost>
Proxy reverse:

let you point web folders to other server/ports.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.