redirect-loop

Too many redirects with reverse proxy

久未见 提交于 2021-01-05 12:22:49
问题 Setup: cloudflare DNS docker-compose nginx reverse proxy wordpress fpm nginx php handler Problem Too many redirects, like in these logs: Attaching to wp_db, wp, wp_web wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.11+maria~bionic started. wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' wp_db | 2020-01-27 12:13:10+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.11+maria~bionic

Redirect Loop in symfony2 when forcing https

谁都会走 提交于 2019-12-23 01:26:13
问题 In my Symfony2 app I have a firewall set up so that everything under the /admin route needs to be run through https, however when deployed I get a redirect loop. I've read the documentation on the Symfony2 site on firewalls, and setting up a login form. I've also read a few Stack Overflow articles and attempted their solutions, but nothing so far. Below is my configuration, is there something I'm missing? (As far as I know the server is running Apache, I've no direct access to server

Cookieless sessions and IIS7 causes a redirect loop

萝らか妹 提交于 2019-12-21 11:00:54
问题 I have an ASP .NET website that uses cookieless sessions. When the initial request is made to the site using a url such as: http://localhost/site IE just displays the standard "Internet Explorer cannot display the webpage" message. Firefox is a bit more helpful and displays the following message: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked." I put some tracing into global.asax and I get into the application start

Nginx reverse proxy causing infinite loop

梦想与她 提交于 2019-12-11 02:39:02
问题 I have the following in my Nginx site config file: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /usr/share/nginx/html; index index.php index.html index.htm; server_name example.com; location / { try_files $uri $uri/ /index.php?q=$uri&$args; } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass

Redirect loop during http:// to https:// redirect

纵然是瞬间 提交于 2019-12-08 09:37:56
问题 I am trying to force a page to be run under SSL, so I have implemented the following on page_load: if (!Request.IsLocal && !Request.IsSecureConnection) { Response.Redirect(Helper.GetInstance().SSLBaseURL() + ScriptName()); } For some reason this is ending up in a loop. Earlier today, I checked Request.Uri.Scheme, and it was resolving as "http", though I was clearly connected to https://www.domain.com/pagename.aspx. Any reason you can think of why this page isn't correctly detecting that we're

Cookieless sessions and IIS7 causes a redirect loop

我怕爱的太早我们不能终老 提交于 2019-12-04 04:34:11
I have an ASP .NET website that uses cookieless sessions. When the initial request is made to the site using a url such as: http://localhost/site IE just displays the standard "Internet Explorer cannot display the webpage" message. Firefox is a bit more helpful and displays the following message: "Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked." I put some tracing into global.asax and I get into the application start event but not into the session start event. I have not explictly blocked any cookies with the browsers

nginx redirect loop with ssl

送分小仙女□ 提交于 2019-11-30 14:11:27
问题 This is a very similar problem to Nginx configuration leads to endless redirect loop but that discussion has not led me to an answer yet. I'm learning how to work with nginx and ssl and everything works perfectly on the regular http:// example.com side of things, but when routing to the https:// example.com/admin I instead see: This webpage has a redirect loop Here is my config file: map $uri $example_org_preferred_proto { default "http"; ~^/(images|css|javascript)/ "none"; ~^/admin/ "https";

nginx redirect loop with ssl

一个人想着一个人 提交于 2019-11-30 09:32:29
This is a very similar problem to Nginx configuration leads to endless redirect loop but that discussion has not led me to an answer yet. I'm learning how to work with nginx and ssl and everything works perfectly on the regular http:// example.com side of things, but when routing to the https:// example.com/admin I instead see: This webpage has a redirect loop Here is my config file: map $uri $example_org_preferred_proto { default "http"; ~^/(images|css|javascript)/ "none"; ~^/admin/ "https"; } server { listen 80; root /usr/share/nginx/www/example.com/blog; server_name example.com; if (

.htaccess rewrite “/book.php?id=1234” to “/book/1234”

这一生的挚爱 提交于 2019-11-27 05:41:18
This is what I have so far in my development environment: php_value error_log log/php.log php_value display_errors 1 php_value magic_quotes_gpc Off RewriteEngine On # remove slash RewriteCond %{REQUEST_FILENAME} !-d # file.php to /file RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/ RewriteCond %{REQUEST_URI} !^/ajax.php RewriteRule ^(.+)\.php$ http://localhost/$1 [R=301,L] # /file to file.php RewriteRule ^([^/.]+)$ $1.php [L] I've tried a lot of variants of this rule but I always get a 500 error: RewriteRule ^(.*)$ /book.php?url=$1 [L] And this is in my Apache's error.log: [Fri Jul

Servlet filter runs in infinite redirect loop when user is not logged in

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 18:36:34
问题 I have got two HTML files login.html Test.html My requirement is that the User shouldn't able to access test.html unless he logs in successfully that is through login.html This is my login.html file <html> <head> <title>Login Page 122</title> </head> <body> <form action="LoginServlet" method="post"> Username: <input type="text" name="user"> <br> Password: <input type="password" name="pwd"> <br> <input type="submit" value="Login User"> </form> </body> </html> This is my LoginServlet which