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

Re: Permission on /var/www folder

zeromaster Wrote:-------------------------------------------------------> Well thanks for this helpfull answer..> You are telling me the owner shouldn't be Nginx, but in my setup> www-data...

View Article


sitemap.xml not working 404

Hi,I am trying to get my sitemap.xml file to work, but keep getting a 404 page.Tried many rewrite's in my server block config file but nothing seams to work. It's not a wordpress site. I have php...

View Article


How to change request parameters before passing request to proxy.

Hi,I am using Nginx to proxy request to some backend server.For this, i am using proxy_pass module to redirect.Config file:location = /hello {proxy_pass: abc.com}I want to execute the following...

View Article

Nginx 3rd party sticky module with backup server

Hi,I want to use nginx 3rd party sticky module in opensource nginx, but I also need to configure a backup server. Nginx sticky module does not allow backup directive.Is there any alternate way to...

View Article

Re: Nginx 3rd party sticky module with backup server

With Lua just about anything is possible in this scenario, but the question should be:what are you going to do with sticky session data when it falls over?Stickiness is used to maintain and be...

View Article


Re: Nginx 3rd party sticky module with backup server

Thank you for your response. I am new to nginx, can you elaborate or send a link to using Lua with nginx sticky module(for windows).I need back up option so that in case 1 server becomes unavailable,...

View Article

Re: Nginx 3rd party sticky module with backup server

rits Wrote:-------------------------------------------------------> Thank you for your response. I am new to nginx, can you elaborate or> send a link to using Lua with nginx sticky module(for...

View Article

Re: Nginx 3rd party sticky module with backup server

Thanks.I tried it. sessions are sticking to the same server but It is not doing round robin, My all requests are going only to first upstream server configured in nginx config.How will nginx know next...

View Article


Re: Nginx 3rd party sticky module with backup server

rits Wrote:-------------------------------------------------------> Thanks.>> I tried it. sessions are sticking to the same server but It is not> doing round robin, My all requests are...

View Article


Re: Nginx 3rd party sticky module with backup server

True, You are right.The issue I am facing isupstream myLoadBalancer {> hash $upstream_addr;> server remote1:port1;> server remote1:port2;> server remote2.:port1;> }say first server is...

View Article

Re: Nginx 3rd party sticky module with backup server

rits Wrote:-------------------------------------------------------> say first server is selected from upstream. Since I have specified> hash $upstream_addr, all subsequent requests go to this...

View Article

Re: Nginx 3rd party sticky module with backup server

Thanks for inputs. Really appreciate.Does sticky module work with SSL on, for https requests? Has anyone tried?

View Article

Sticky module with SSL

Does sticky module work with SSL on, for https requests? Has anyone tried?

View Article


Re: Sticky module with SSL

Try yourself with Curl which supports ssl.

View Article

Is it possible to move /var/www folder by another one as...

I there,I am a french newbie user of Nginx.My web site works perfectly when I use /var/www folder.But, I use a Raspberry Pi to heberge it.As you known, Rapsberry PI is a nano PC that use MicroSD card...

View Article


Re: Is it possible to move /var/www folder by another one as...

Maybe using symbolic link ?ls -s /media/pi/USBSTICK/www /var/wwwI have tested it but it doesn't work...

View Article

403 on allowed IP

I have a WordPress website and am trying to restrict access to wp-admin via nginx config. I can success block access to wp-admin, however when attempting to access wp-admin from an allowed IP address,...

View Article


Rewrite not working as expected

Any ideas what is wrong with this?rewrite ^(.*)/page/([0-9]*)$ $1?page=$2 break;Tried quoting, but still no success:rewrite ^(.*)/page/([0-9]*)$ "$1?page=$2" break;rewrite "^(.*)/page/([0-9]*)$"...

View Article

phpmyadmin works on localhost but not locahost/phpmyadmin

I have a working wordpress site on my ip address and I wanted to setup phpmyadmin on the server machine.I could've sworn that when I had it set tomy.domain/phpmyadminI was able to access it from the...

View Article

Re: phpmyadmin works on localhost but not locahost/phpmyadmin

[CODE]server {listen 80;server_name site.com;root /var/www/site.com/public/;index index.php index.html;location / {try_files $uri $uri/ =404;}error_page 404 /404.html;error_page 500 502 503 504...

View Article
Browsing all 4759 articles
Browse latest View live


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