Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Is an IP address valid for server_name?

So I will be using nginx as a reverse proxy. I do not have a domain name for my server yet. I am in development. Can I use the IP address such as the following in /etc/nginx/sites-available/default:...

View Article


Re: Conditionally include conf files in ngin

Hi, you may use the include directive with some glob() pattern tricks For instance, replace this include /path/to/something/nonexisting.conf with include /path/to/something/nonexisting[.]conf the...

View Article


Re: Is an IP address valid for server_name?

Sure you can.

View Article

Re: Is an IP address valid for server_name?

Thanks you sir. The answer I was hoping for. Ray

View Article

How to redirect Nginx port 80 to 8080 Tomcat and make webapp main page?

Hello, I have site (its name is not real but something like) http://example.co Tomcat it installed there on port 8080 with web app. http://example.co:8080/web_app/ The question is which Nginx server in...

View Article


Prevent json truncation from large POST requests

Hi there, I'm having an issue with Nginx and sending large POST requests. I have a load balancer that forwards requests to an EC2 instance that has Nginx running on port 80 and my application running...

View Article

Is sendfile option compatibile with TLS?

Hello! I'm stuck to understand how nginx handles encrypting messages with TLS protocol, when sendfile is ON. The premise of sendfile is not to use user space, just redirect given file straight to the...

View Article

ssl_ciphers explained

Hi, This may sound like a stupid questions, but I have not found any clear answers to it. Could someone explain the ssl_ciphers options in nginx? For example...

View Article


multiple nginx error log

Hi , I have a nginx 1.4.6 running on Ubuntu 14.04.5 LTS and recently i have changed the path of the access_log and error_log to a diff path (which has bigger disk). However after changing the path in...

View Article


Re: Missing /etc/nginx/sites-available/default

u can create the folders and the touch the default file urself...it will still work . verify with nginx -t

View Article

Re: Missing /etc/nginx/sites-available/default

adding to the thread above , the folders should be created provided you have the following config in your nginx.conf include /etc/nginx/sites-enabled/*; #(for virtual hosts)

View Article

Re: Nginx reverse proxy

hi aminbaik , you can use the following example and fill the values in <> server { listen 80; server_name example.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl;...

View Article

Re: Nginx reverse proxy

Hello, it's not working because the nginx domain is example.com and the domain is point to this reverse proxy is reverdoamin.com so I always get certificate error. I want to have something like cloud...

View Article


Filtering by content type

Hi everyone, I've been looking for this answer but I cound't find a straight answer. I'm hardening my API REST, and one of the points I have to implement says: "Reject requests containing unexpected or...

View Article

Nginx infront of WOWZA streaming server

We have successfully set up Nginx ssl offloading server in front of our WOWza streaming server. HLS streams work without issues. The problem comes in when trying to get streams to play on android...

View Article


Non-caching aliases

Here is its nginx config: server { server_name example.com m.example.com www.example.com www.m.example.com; charset off; disable_symlinks if_not_owner from=$root_path; index index.html index.php; root...

View Article

Proxy Cache - How to Always Return Stale Content

Hello, My use case is simple: 1) Serve static files coming from an upstream (using proxy_pass) 2) If the upstream returns a non-200/304 response - ALWAYS serve the file from cache, even if its...

View Article


Configure nginx to forward port from 3000 to 80

http { server { listen 80; location / { proxy_pass http://127.0.0.1:3000; proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;...

View Article

Nginx configuration for multiple servers in folders

I have just installed Nginx on my Raspberry and everything works smoothly. I have created a basic index.html file and when I connect to my raspi, the web page is displayed correctly. Also php works. I...

View Article

Need a developer badly

Hey there, am not a developer or i have least knowledge about it. But am in very bad need, i want to mirror the "https://google.com/flights" in my blog. But as google had blocked the x-frame options...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>