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

Re: Redirect with HTTPS with basic auth

Make 2 server blocks, you can't do this with 1 block where http and https are combined.

View Article


Re: Redirect with HTTPS with basic auth

Thank you for your answer. Well I know that is an option but I hate to have duplicated code everywhere, it is not very good for maintainance. It would be great to have a feature to make a redirect...

View Article


Re: Redirect with HTTPS with basic auth

You call this high-maintenance: ?? server { listen 80; server_name mydomain.com; location / { rewrite ^ https://$http_host$request_uri? permanent; } }

View Article

Caching - Always MISS

Hi all, I'm having trouble setting up caching. The goal is to have static files cached by NGINX. The problem is that I always see this in Chrome Devtools: 'x-proxy-cache:MISS' This is the full response...

View Article

Re: Redirect with HTTPS with basic auth

itpp2012 Wrote: ------------------------------------------------------- > You call this high-maintenance: ?? > > server { > listen 80; > server_name mydomain.com; > location / {...

View Article


Re: Redirect with HTTPS with basic auth

You could try something like: server { listen 80; listen 443 ssl; server_name mydomain.com; if ($scheme = 'http') { rewrite ^ https://$http_host$request_uri? permanent; } location / { bla.....; } } ea....

View Article

Re: Redirect with HTTPS with basic auth

but if you do that then you get redirected to https for all locations which is not what I want and if I wanted it I would do it without an if: server { listen 80; server_name mydomain.com; rewrite ^...

View Article

Re: Redirect with HTTPS with basic auth

The only other way is to use a parser which reads in your combined config and splits it out into http/https blocks. ea....

View Article


Rule to remove a character from url

Hello! I'm trying to change the url of my page removing a point character (.) when it appear. I think that the best solution is a rewrite but i can't find a correct rule. For example:...

View Article


prox-pass removes SM_USER Header depending on the client

Dear nginx-Community, Using the following configuration for a default docker nginx:1.11.3 container : server { listen 80; server_name devrest.example.com; root /devrestserver; underscores_in_headers...

View Article

nginx and wordpress 4.7

Hello everyone! I'm having some issues on setting a website online! I've followed a tut on " http://everyday-tech.com/wordpresspi-wordpress-web-server-image-on-raspberry-pi/" it doesn't work for me!...

View Article

Is my compiled nginx too big at 11MB ?

Compared to the binary version in the repo which is maximum 1MB and has quite the same features, I cant make it smaller than 8MB, and if I include all the recommended options it gets up to 11MB. What...

View Article

Nginx as proxy Server - real visitor IP address

unable to get visitor IP address from pfsense router My Nginx version : https://goo.gl/uMVzK0 I added a log format for nginx.conf screenshot: https://goo.gl/o4oPdG Try to access the site and generated...

View Article


Handling Https proxy request nginx

I am trying to setup a proxy server which will handle both http and https requests. The server will also cache the response for future usage. I am able to successfully implement the proxy with http...

View Article

Which is the best tuning on a big machine?

I have a very big machine with 56 cores and 65680880 memory. Which is the best configuration of NGINX + PHP-FPM and FastCGI Cache regarding files limit, nproc limit, workers limits and other limits...

View Article


Re: proxy-pass removes SM_USER Header depending on the client

Ok, seems, it works now. I had serveral server configurations using or not using the underscores_in_headers on; directive. I put this directive into the http block and now get the same behaviour from...

View Article

How to use Squid as caching and Nginx for ngx_pagespeed?

I need to use Squid as caching server to cache all web page resources. And need to use Nginx behind that so that I can apply ngx_pagespeed module and compress web page data. So that web page size will...

View Article


sessions not working (nginx)

Hello , im new in nginx , i have really big problem , when i setup nginx , i setup my project too, i found , the session not working at all , they dont keep on live , i really need a help (i used...

View Article

Owncloud 9.1.3 + Nginx 1.10.2 file upload

Hi, I am using latest OwnCloud 9.1.3 and Nginx web server. Everything works very well, but I have little trouble with uploading large files. My limit for file size is 2GB. When I start upload let say...

View Article

Add modules? can't figure how to add ngx_http_core_module

Hi I want to add the "ngx_http_core_module" module. I understand that I'll have to remove and reinstall the NGINX module Do I have to download its source somehow, compile it separately and configure it...

View Article
Browsing all 4759 articles
Browse latest View live


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