Hi, from my "default" configuration: # You may add here your # server { # ... # } # statements for each of your virtual hosts server { listen 80; location / { root /var/www/nginx-default; index index.html index.htm; } location /doc { root /usr/share; autoindex on; allow 127.0.0.1; deny all; } location /images { root /usr/share; autoindby rook2pawn - How to...
actually i just found a good solution. perhaps by sharing it can be evaluated and or be helpful to others. 3 location blocks did it and it looks proper. location ~ ^/foo { proxy_pass http://127.0.0.1:4500 } location ~ ^/$ { rewrite ^/$ http://bar.com/foo } location / { root /path/to/www } so what this setup achieves i think is to rewrite a / request to /foo which proxies to port 4500by rook2pawn - How to...
hi all, I have the following that im trying to get working in Nginx but its not quite working out.. RewriteCond %{$REQUEST_URI} ^/foo RewriteRule ^/(.*) http://127.0.0.1:4500/$1 #proxy and last RewriteCond %{$REQUEST_URI} ^/$ RewriteRule ^/$ http://foobar.com/foo any ideas? Thanks in advance.by rook2pawn - How to...
![]() |
![]() |
![]() |
![]() |
|