title: How to get static file from nginx via curl?
body: <p>I have this nginx configuration:</p>
  
  <pre><code>server {
  listen 80;
  client_max_body_size 4G;
  
  server_name mysite.ru;
  
  location / {
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect off;
    proxy_buffering off;
    proxy_pass http://aiohttp;
  }
  
  location /static {
    # path for static files
    root /var/www/mysite.ru/public_html;
  }
  }
  </code></pre>
  
  <p>And i have index.html in /var/www/mysite.ru/public_html. How can i get this file via curl? These doesnt work:</p>
  
  <p>curl -X GET '<a href="http://mysite.ru/static/index.html" rel="nofollow noreferrer">http://mysite.ru/static/index.html</a>'</p>
  
  <p>curl -X GET '<a href="http://mysite.ru/index.html" rel="nofollow noreferrer">http://mysite.ru/index.html</a>'</p>