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

nginx second site configuration

Please help me!!!!!!!!! I am trying to setup a second site using nginx but looks like all requests are going to the same place. I mean to this site here "institutoprana.com.br"If you type in...

View Article


redirect all unconfigured subdomains

Hi all,I'm happy to join NGINX community and want to share with you with my little problem.I've got wildcard entry for example.com in my DNS which points all subdomains to some machine* IN A...

View Article


Re: nginx second site configuration

Hi rodusa,You should probably start with defining server_name for instances of your supported domainshttp://nginx.org/en/docs/http/server_names.htmland adding second configuration to enabled sites.

View Article

Re: how to disable resume capability

Hi,have you tried setting max_ranges 0 for sever?

View Article

Re: nginx second site configuration

VonHerman,In this config I combined the configuration of both domains and the server_name is in there. I also tried created two separated instances such as:domain1server {...server_name...

View Article


Re: Masking query string password in access log

location /xxx {#Strip password in access.logset $temp $request;if ($temp ~ (.*)password=[^&]*(.*)) {set $temp $1password=****$2;}log_format filter '$remote_addr - $remote_user [$time_local]...

View Article

Re: nginx second site configuration

Looks like you have problem with dynamic content from PHP. Try asking new instance for some static content like:http://agencialojavirtual.com.br/test.htmlIt it working?Also make sure that:nginx...

View Article

Noob question - Root vs Alias and image_filter

Hi,I'm starting with nginx, and I have some problems with resize of pictures. And when I'm trying my conf, I see I did not realy undersand some basic concepts.My first problem :I have a url like this :...

View Article


Проверка на вхождение.

Добрый день.Существует необходимость проверить на входжение некоторую системную переменную:root /www/public_html;include /etc/nginx/fastcgi_params;fastcgi_pass fpm_server;fastcgi_index...

View Article


Re: nginx second site configuration

VonHerman, Thank you very much for the tip. I did some play around after I read the link that you posted and I got it to work when I repeated the same config instructions from the one that was working....

View Article

Nginx as reverse proxy - must point to different web servers

Hello,i'm a newbie on Nginx and i have this problem :We have Nginx as reverseproxy who point on a Java server (Platform play) - That's ok and work well :https://www.toto.frNow we would like to point to...

View Article

Re: Noob question - Root vs Alias and image_filter

Ok, I have resolved my problem about resize.The solution is to add a location to the path. Like that :location ~ /media/test/(.*) {image_filter resize 50 10;proxy_pass...

View Article

Re: Nginx as reverse proxy - must point to different web servers

Either create a second location block (location /nagios {...) or update the folder name on the target device to match the existing. It will be difficult to catch absolutely everything with rewrites.

View Article


Re: Nginx as reverse proxy - must point to different web servers

Hello Doctau,I'm relatively new to nginx as well, but I think I can propose a solution to your problem. You could use a regular expression (flagged by ~) in your location path to match both...

View Article

Re: Nginx as reverse proxy - must point to different web servers

Thanks for reply u848237 ! 8)So, for you there is no simple solution ?Have you got an idea how can i process ?

View Article


Re: redirect all unconfigured subdomains

Separate server block with no server_name directive? Or a dedicated IP for those unconfigured?

View Article

Re: Nginx as reverse proxy - must point to different web servers

Thanks Oliver for your quick response,I'll test your solution and will look at the wiki and i'll make a return if its OK !

View Article


Microsoft RPC over HTTPS

I'm struggling with the above with nginx as reverse proxy. I can see RPC_IN_DATA and RPC_OUT_DATA methods crossing the proxy, but get 503 served after a short time.Config extracts:gzip off;tcp_nodelay...

View Article

Preserve http headers from Django using NGINX and Gunicorn

Hi,I posted a question on server fault on how to preserve the headers I set in the Django backend.It seems as nginx "removes" the headers I have set in a Django middleware.I described my problem in...

View Article

Load balancer deployed on same two servers as application

If I want to load balance / provide HA to two Tomcat servers using nginx then this is obviously possible top do via a 3rd server acting as a go-between (fig 1). But can I do away with this 3rd server...

View Article
Browsing all 4759 articles
Browse latest View live


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