nginx_user10 Wrote: ------------------------------------------------------- > nginx_user10 Wrote: > ------------------------------------------------------- > > I am trying to serve images files only in this location block. > > > > location /image \.(png|jpg) > > { > > alias /site/; > > } > > > > But I keepby nginx_user10 - How to...
nginx_user10 Wrote: ------------------------------------------------------- > I am trying to serve images files only in this location block. > > location /image \.(png|jpg) > { > alias /site/; > } > > But I keep receiving errors. What is the correct way to serve only png > and jpg matching /images. *********************** updateby nginx_user10 - How to...
I am trying to serve images files only in this location block. location /image \.(png|jpg) { alias /site/; } But I keep receiving errors. What is the correct way to serve only png and jpg matching /images.by nginx_user10 - How to...
FIxed. I added $arg_i instead of $query_string.by nginx_user10 - How to...
I am trying to redirect the page to a new location. I am trying to go from http://localhost/page/image_archive.php?i=500 to http://localhost/gallery/500 The $query_string is causing an error. The query_string is i=500. How can I just get the number and not i=500 or whatever number. location ~* ^/page/image_archive.php?$ { return 302 http://127.0.0.1/gallby nginx_user10 - How to...
I am new to ngnix, new as in I have never heard of it until 2 weeks ago. I am trying to deny certain user agents access. I have following code in the sites-available/default file. set $block_user_agents 0; if ($http_user_agent ~ "Wget") { set $block_user_agents 1; } if ($block_user_agents = 1) { return 404; } When I try to reload nginx it fails. whby nginx_user10 - How to...