Edit:
proxy_pass should be put inside a location block.
Example:
location / {
proxy_pass http://10.0.2.2;
}
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,277698,277735#msg-277735
___
nginx mailing list
nginx@nginx.org
http://mailman.ng
It's possible.
#put this in the http context
proxy_http_version 1.1; #default is HTTP/1.0
-
#example server blocks
#redirect to https
server {
listen 80;
server_name "~^(.+\.)?example\d{2}\.com$"; #regex to match
example[number].com and *.example[number].com
return 301 https://$host$
Hello!
On Mon, Dec 11, 2017 at 09:51:51AM -0500, drook wrote:
> Hi,
>
> Considering that I don't have symbolic links why do these configs work
> differently ?
>
> ===config one===
> if (!-f $request_filename) {
> rewrite ^/(.*)$ /init.php;
> }
> if (!-d $request_filename) {
> rewrite ^/
Hi,
Considering that I don't have symbolic links why do these configs work
differently ?
===config one===
if (!-f $request_filename) {
rewrite ^/(.*)$ /init.php;
}
if (!-d $request_filename) {
rewrite ^/(.*)$ /init.php;
}
===config one===
This one above works, rewrite happens.
Being cha