<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi you all,</p>
<p>I'm trying to improve the reverse proxy's virtual hosts'
configuration files of my company,</p>
<p>but I'm facing an issue that I can't understand:</p>
<p><br>
</p>
<p>In the "location / " block I inserted these lines <br>
</p>
<div
style="color: #cccccc;background-color: #1f1f1f;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
style="color: #cccccc;"> location ~* ^.+\.(eot|otf|woff|woff2|ttf|rss|atom|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {</span></div><div><span
style="color: #cccccc;"> access_log off</span><span
style="color: #6a9955;">; log_not_found off; expires max;</span></div><div><span
style="color: #cccccc;"> }</span></div></div>
<p></p>
<p>and everythings fine, </p>
<p>==> /var/log/nginx/MYSITEcom.access.log <==<br>
</p>
<p>172.18.0.1 - - [26/Feb/2024:08:36:44 +0000] "GET
/wp-content/themes/MYSITE/images/back-numbers.png HTTP/1.1" 200
264666
<a class="moz-txt-link-rfc2396E" href="https://www.MYSITE.com/wp-content/themes/MYSITE/css/style.css?ver=5.6.1">"https://www.MYSITE.com/wp-content/themes/MYSITE/css/style.css?ver=5.6.1"</a>
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/122.0.0.0 Safari/537.36"<br>
<br>
</p>
<p>it doesn's log the gets to these extentions and so on but when I
put the following line, </p>
<div
style="color: #cccccc;background-color: #1f1f1f;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;">location ~* \.(?:css|js)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"> expires 1y;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"> access_log off;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"> add_header Cache-Control "public";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;">}</span></div></div>
<p></p>
<p>the site changes aspect and logs are filles with "no such file or
directory"<br>
</p>
<p>==> /var/log/nginx/MYSITE.com.error.log <==<br>
2024/02/26 08:34:46 [error] 107#107: *336 open()
"/etc/nginx/html/wp-content/themes/MYSITE/webfonts/Roboto-Regular.ttf"
failed (2: No such file or directory), client: 172.18.0.1, server:
<a class="moz-txt-link-abbreviated" href="http://www.MYSITE.com">www.MYSITE.com</a>, request: "GET
/wp-content/themes/MYSITE/webfonts/Roboto-Regular.ttf HTTP/1.1",
host: "<a class="moz-txt-link-abbreviated" href="http://www.MYSITE.com">www.MYSITE.com</a>", referrer:
<a class="moz-txt-link-rfc2396E" href="https://www.MYSITE.com/wp-content/themes/MYSITE/css/style.css?ver=5.6.1">"https://www.MYSITE.com/wp-content/themes/MYSITE/css/style.css?ver=5.6.1"</a></p>
<p>It looks like it changes, some way, the root directory, but being
reverse proxies I didn't set it up.</p>
<p><br>
</p>
<p>here below you can fine the virtual host conf file.</p>
<p>thanks in advance for every suggestion</p>
<p>Rob<br>
</p>
<div
style="color: #cccccc;background-color: #1f1f1f;font-family: 'Droid Sans Mono', 'monospace', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
style="color: #6a9955;">##################</span></div><div><span
style="color: #6a9955;">## plain http</span></div><div><span
style="color: #6a9955;">##################</span></div>
<div><span style="color: #cccccc;">server {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #dcdcaa;">listen</span><span
style="color: #cccccc;"> 80;</span></div><div><span
style="color: #cccccc;"> server_name MYSITE.com;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #c586c0;">return</span><span
style="color: #cccccc;"> 301 <a class="moz-txt-link-freetext" href="https://www">https://www</a>.</span><span
style="color: #9cdcfe;">$server_name$request_uri</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;">}</span></div>
<div><span style="color: #cccccc;">server {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #dcdcaa;">listen</span><span
style="color: #cccccc;"> 80;</span></div><div><span
style="color: #cccccc;"> server_name <a class="moz-txt-link-abbreviated" href="http://www.MYSITE.com">www.MYSITE.com</a>;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #c586c0;">return</span><span
style="color: #cccccc;"> 301 https://</span><span
style="color: #9cdcfe;">$server_name$request_uri</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;">}</span></div>
<div><span style="color: #6a9955;">## cyphered https</span></div><div><span
style="color: #6a9955;">##################</span></div><div><span
style="color: #6a9955;">##################</span></div>
<div><span style="color: #cccccc;">server {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># SRV NAME</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #dcdcaa;">listen</span><span
style="color: #cccccc;"> 443 ssl;</span></div><div><span
style="color: #cccccc;"> server_name MYSITE.com;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #c586c0;">return</span><span
style="color: #cccccc;"> 301 <a class="moz-txt-link-freetext" href="https://www">https://www</a>.</span><span
style="color: #9cdcfe;">$server_name$request_uri</span><span
style="color: #cccccc;">;</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># TLS</span></div><div><span
style="color: #cccccc;"> ssl_certificate /etc/ssl/websites/www.MYSITE.com/www.MYSITE.com.crt;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># --> ricordati di appendere il bundle nel crt <--</span></div><div><span
style="color: #cccccc;"> ssl_certificate_key /etc/ssl/websites/www.MYSITE.com/www.MYSITE.com.key;</span></div><div><span
style="color: #cccccc;"> ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;</span></div><div><span
style="color: #cccccc;"> ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;</span></div><div><span
style="color: #cccccc;"> ssl_prefer_server_ciphers on;</span></div><div><span
style="color: #cccccc;">}</span></div>
<div><span style="color: #cccccc;">server {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># SRV NAME</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #dcdcaa;">listen</span><span
style="color: #cccccc;"> 443 ssl;</span></div><div><span
style="color: #cccccc;"> server_name <a class="moz-txt-link-abbreviated" href="http://www.MYSITE.com">www.MYSITE.com</a>;</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># TLS</span></div><div><span
style="color: #cccccc;"> ssl_certificate /etc/ssl/websites/www.MYSITE.com/www.MYSITE.com.crt;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># --> ricordati di appendere il bundle nel crt <--</span></div><div><span
style="color: #cccccc;"> ssl_certificate_key /etc/ssl/websites/www.MYSITE.com/www.MYSITE.com.key;</span></div><div><span
style="color: #cccccc;"> ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;</span></div><div><span
style="color: #cccccc;"> ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;</span></div><div><span
style="color: #cccccc;"> ssl_prefer_server_ciphers on;</span></div><div><span
style="color: #cccccc;"> </span></div><div><span
style="color: #cccccc;"> access_log /var/</span><span
style="color: #dcdcaa;">log</span><span style="color: #cccccc;">/nginx/MYSITE.com.access.</span><span
style="color: #dcdcaa;">log</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> error_log /var/</span><span
style="color: #dcdcaa;">log</span><span style="color: #cccccc;">/nginx/MYSITE.com.error.</span><span
style="color: #dcdcaa;">log</span><span style="color: #cccccc;">;</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># OCSP stapling</span></div><div><span
style="color: #cccccc;"> ssl_stapling on;</span></div><div><span
style="color: #cccccc;"> ssl_stapling_verify on;</span></div><div><span
style="color: #cccccc;"> </span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># Security Headers</span></div><div><span
style="color: #cccccc;"> fastcgi_hide_header X-Powered-By; </span></div><div><span
style="color: #cccccc;"> add_header X-Content-Type-Options nosniff; </span></div><div><span
style="color: #cccccc;"> add_header X-XSS-Protection </span><span
style="color: #ce9178;">"1; mode=block"</span><span
style="color: #cccccc;">; </span></div><div><span
style="color: #cccccc;"> add_header Set-Cookie </span><span
style="color: #ce9178;">"Path=/; HttpOnly; Secure"</span><span
style="color: #cccccc;">; </span></div><div><span
style="color: #cccccc;"> add_header Cache-Control </span><span
style="color: #ce9178;">'no-store, no-cache'</span><span
style="color: #cccccc;">; </span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># config to enable HSTS(HTTP Strict Transport Security)</span></div><div><span
style="color: #cccccc;"> add_header Strict-Transport-Security </span><span
style="color: #ce9178;">"max-age=31536000; includeSubDomains"</span><span
style="color: #cccccc;"> always;</span></div><div><span
style="color: #cccccc;"> add_header Content-Security-Policy </span><span
style="color: #ce9178;">"script-src 'self' *.youtube.com maps.gstatic.com *.googleapis.com *.google-analytics.com cdnjs.cloudflare.com assets.zendesk.com connect.facebook.net; frame-src 'self' *.youtube.com assets.zendesk.com *.facebook.com s-static.ak.facebook.com tautt.zendesk.com; object-src 'self'; default-src 'self'; frame-ancestors 'self'; form-action 'self'"</span><span
style="color: #cccccc;">;</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># header and cache expiration</span></div><div><span
style="color: #cccccc;"> expires epoch; </span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># security</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;">#Autenticazioneauth_basic "Authentication required";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;">#Autenticazioneauth_basic_user_file /etc/nginx/.htpasswd;</span></div>
<div><span style="color: #cccccc;">location / {</span></div><div><span
style="color: #cccccc;"> </span></div><div><span
style="color: #cccccc;"> proxy_pass <a class="moz-txt-link-freetext" href="https://MYSITE.portals:97/">https://MYSITE.portals:97/</a> ; </span><span
style="color: #6a9955;"># in caso di redirect su URI !=</span></div><div><span
style="color: #cccccc;"> </span><span
style="color: #6a9955;"># si disabilita il proxy_ssl_verify</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># include proxy_params;</span></div><div><span
style="color: #cccccc;"> proxy_set_header Host </span><span
style="color: #9cdcfe;">$http_host</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_set_header X-Real-IP </span><span
style="color: #9cdcfe;">$remote_addr</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_set_header X-Forwarded-For </span><span
style="color: #9cdcfe;">$proxy_add_x_forwarded_for</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_set_header X-Forwarded-Host </span><span
style="color: #9cdcfe;">$host</span><span style="color: #cccccc;">:</span><span
style="color: #9cdcfe;">$server_port</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_set_header X-Forwarded-Server </span><span
style="color: #9cdcfe;">$host</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_set_header X-Forwarded-Proto </span><span
style="color: #9cdcfe;">$scheme</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> proxy_read_timeout 900;</span></div><div><span
style="color: #cccccc;"> proxy_headers_hash_max_size 512;</span></div><div><span
style="color: #cccccc;"> proxy_headers_hash_bucket_size 128;</span></div><div><span
style="color: #cccccc;"> proxy_ssl_verify off; </span><span
style="color: #6a9955;"># disabilitato perchè non in possesso della CA.pem</span></div><div><span
style="color: #cccccc;"> proxy_ssl_trusted_certificate /etc/ssl/websites/MYSITE.com/MYSITE.com.ca-bundle;</span></div><div><span
style="color: #cccccc;"> proxy_ssl_verify_depth 2;</span></div><div><span
style="color: #cccccc;"> proxy_ssl_session_reuse on;</span></div><div><span
style="color: #cccccc;"> proxy_ssl_name </span><span
style="color: #9cdcfe;">$proxy_host</span><span
style="color: #cccccc;">;</span></div>
<div><span style="color: #6a9955;">##########################</span></div><div><span
style="color: #6a9955;">#</span></div><div><span
style="color: #6a9955;"># THESE BLOCKS WORK FINE</span></div><div><span
style="color: #6a9955;">#</span></div><div><span
style="color: #6a9955;">##########################</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># Directives to send expires headers and turn off 404 error logging.</span></div><div><span
style="color: #cccccc;"> location ~* ^.+\.(eot|otf|woff|woff2|ttf|rss|atom|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {</span></div><div><span
style="color: #cccccc;"> access_log off; log_not_found off; expires max;</span></div><div><span
style="color: #cccccc;"> }</span></div><div><span
style="color: #cccccc;"> location ~* \.(?:cgi|shtml|phtml|php)$ {</span></div><div><span
style="color: #cccccc;"> add_header Cache-Control </span><span
style="color: #ce9178;">"public"</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> client_max_body_size 0;</span></div><div><span
style="color: #cccccc;"> chunked_transfer_encoding on;</span></div><div><span
style="color: #cccccc;"> }</span></div>
<div><span style="color: #6a9955;">##########################</span></div><div><span
style="color: #6a9955;">#</span></div><div><span
style="color: #6a9955;"># THESE BLOCKS BREAK ALL</span></div><div><span
style="color: #6a9955;">#</span></div><div><span
style="color: #6a9955;">##########################</span></div>
<div><span style="color: #cccccc;"> </span><span
style="color: #6a9955;"># # Media: images, icons, video, audio send expires headers</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># expires 1M;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># access_log off;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># add_header Cache-Control "public";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># }</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># Web fonts send expires headers</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># location ~* \.(?:eot|otf|ttf|woff|woff2)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># expires 3M;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># access_log off;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># add_header Cache-Control "public";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># }</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># # HTML send expires headers.</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># location ~* \.(html)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># expires 7d;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># access_log off;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># add_header Cache-Control "public";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># }</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># Browser caching of static assets.</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># location ~* \.(jpg|jpeg|png|gif|ico|css|js|pdf)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># expires 7d;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># add_header Cache-Control "public, no-transform";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># }</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># CSS and Javascript send expires headers.</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># location ~* \.(?:css|js)$ {</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># expires 1y;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># access_log off;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># add_header Cache-Control "public";</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># }</span></div><div><span
style="color: #cccccc;">}</span></div>
<div><span style="color: #6a9955;"># Enable Gzip compression in NGNIX.</span></div><div><span
style="color: #cccccc;">gzip on;</span></div><div><span
style="color: #cccccc;">gzip_disable </span><span
style="color: #ce9178;">"msie6"</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;">gzip_static on;</span></div><div><span
style="color: #cccccc;">gzip_vary on;</span></div><div><span
style="color: #cccccc;">gzip_proxied any;</span></div><div><span
style="color: #cccccc;">gzip_comp_level 6;</span></div><div><span
style="color: #cccccc;">gzip_min_length 512;</span></div><div><span
style="color: #cccccc;">gzip_buffers 16 8k;</span></div><div><span
style="color: #cccccc;">gzip_http_version 1.1;</span></div>
<div><span style="color: #cccccc;">gzip_types text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml font/truetype application/x-font-ttf text/x-component font/opentype application/vnd.ms-fontobject;</span></div>
<div><span style="color: #cccccc;">location ~ [^/]\.php(</span><span
style="color: #d16969;">/|</span><span style="color: #9cdcfe;">$)</span><span
style="color: #d16969;"> {</span></div><div><span
style="color: #d16969;"> fastcgi_split_path_info ^(.+?</span><span
style="color: #d7ba7d;">\.</span><span style="color: #d16969;">php)(/.*)</span><span
style="color: #9cdcfe;">$;</span></div><div><span
style="color: #d16969;"> if (!-f </span><span
style="color: #9cdcfe;">$document_root$fastcgi_script_name</span><span
style="color: #d16969;">) {</span></div><div><span
style="color: #d16969;"> return 404;</span></div><div><span
style="color: #d16969;"> }</span></div><div><span
style="color: #d16969;"> # Mitigate <a class="moz-txt-link-freetext" href="https://httpoxy.org/">https://httpoxy.org/</a></span><span
style="color: #cccccc;"> vulnerabilities</span></div><div><span
style="color: #cccccc;"> fastcgi_param HTTP_PROXY </span><span
style="color: #ce9178;">""</span><span style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> fastcgi_pass 127.0.0.1:9000;</span></div><div><span
style="color: #cccccc;"> fastcgi_index </span><span
style="color: #dcdcaa;">index</span><span style="color: #cccccc;">.php;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># include the fastcgi_param setting</span></div><div><span
style="color: #cccccc;"> include fastcgi_params;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># SCRIPT_FILENAME parameter is used for PHP FPM determining</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># the script name. If it is not set in fastcgi_params file,</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># i.e. /etc/nginx/fastcgi_params or in the parent contexts,</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;"># please comment off following line:</span></div><div><span
style="color: #cccccc;"> fastcgi_param SCRIPT_FILENAME </span><span
style="color: #9cdcfe;">$document_root$fastcgi_script_name</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;"> location ~ \wp-login.php$ {</span></div><div><span
style="color: #cccccc;"> allow 192.168.0.0/16;</span></div><div><span
style="color: #cccccc;"> deny all;</span></div><div><span
style="color: #cccccc;"> include fastcgi.conf;</span></div><div><span
style="color: #cccccc;"> fastcgi_intercept_errors on;</span></div><div><span
style="color: #cccccc;"> fastcgi_pass unix:/var/run/appname.sock;</span></div><div><span
style="color: #cccccc;"> }</span></div><div><span
style="color: #cccccc;"> include fastcgi.conf;</span></div><div><span
style="color: #cccccc;"> fastcgi_intercept_errors on;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #6a9955;">#fastcgi_pass unix:/var/run/appname.sock;</span></div>
<div><span style="color: #cccccc;">}</span></div>
<div><span style="color: #cccccc;">location = /robots.txt {</span></div><div><span
style="color: #cccccc;"> add_header Content-Type text/plain;</span></div><div><span
style="color: #cccccc;"> </span><span style="color: #c586c0;">return</span><span
style="color: #cccccc;"> 200 </span><span style="color: #ce9178;">"User-agent: *</span><span
style="color: #d7ba7d;">\n</span><span style="color: #ce9178;">Disallow: /</span><span
style="color: #d7ba7d;">\n</span><span style="color: #ce9178;">"</span><span
style="color: #cccccc;">;</span></div><div><span
style="color: #cccccc;">}</span></div><div><span
style="color: #cccccc;">}</span></div></div>
<p></p>
<p><br>
</p>
</body>
</html>