• http_addition
    1 replies, posted
Does anyone know anything about the Nginx module called http_addition, [url]http://nginx.org/en/docs/http/ngx_http_addition_module.html[/url] there isn't a lot of documentation on it specially the method it uses to load files in the response header. At [url]http://aedaira.com/[/url] I've implemented the added http with a file from my webhost. Aedaira is hosted on my home server, and it is using a name-server on a different server that adds the extra http headers. As you can see that it 404's, however the directory and file location is 100% correct. If anyone knows anything about this I'd really appreciate some input because I can't find any answers on Google. This is the proxy settings on my name-server, it reverse proxies back to my local server. [CODE] // Domain proxies server { listen 80; server_name aedaira.com; location / { addition_types *; add_before_body add.html; proxy_redirect off; proxy_buffering off; proxy_pass http://82.35.86.112/; // My home server. } } // Nginx.conf worker_processes 3; events { worker_connections 1024; } http { server_names_hash_bucket_size 64; include mime.types; default_type application/octet-stream; gzip on; gzip_comp_level 9; include ../nameservers/domains/*.conf; } [/CODE]
[URL="http://facepunch.com/showthread.php?t=1250244"]http://facepunch.com/showthread.php?t=1250244[/URL] Please post in the above linked thread for small questions like this. As for on-topic, provide the absolute path to the file from root directory, for example [B]/add.html[/B]. Also i would use [B]addition_types text/html;[/B] instead of what you have, just to be sure it doesn't mismatch the mime type.
Sorry, you need to Log In to post a reply to this thread.