The page isn't redirecting properly


#1

My domain is:
levente.gq

My web server is (include version):
apache2
Server version: Apache/2.4.25 (Debian)
Server built: 2018-06-02T08:01:13

The operating system my web server runs on is (include version):
Debian 9 4.9.0-7-amd64

I can login to a root shell on my machine (yes or no, or I don’t know):
yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

When opening the site I get the error “The page isn’t redirecting properly”
Configs:
000-default: http://0x0.st/s4ei.conf
default-ssl: http://0x0.st/s4e-.conf

This also happened on nginx


#2

Hi @leventea

your redirect rule:

RewriteCond %{SERVER_NAME} =levente.gq
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

So if the SERVER_NAME is levente.gq, then it’s redirected to levente.gq. But then your SERVER_NAME is again levente.gq, so - oh, a loop.

Is this that what you want?


#3

But this redirect rule is only present in the :80 VirtualHost, not the :443 VirtualHost, so it shouldn’t cause a loop by itself.


#4

Yep, thanks. So this isn’t the reason.

Is there a content management system? If Apache and nginx create loops?


#5

I have wiped nginx before installing apache2
I don’t have a CMS either


#6

Do you have a .htaccess - file with rules?


#7

nope, I do not have a .htaccess file


#8

Then your informations

are not complete.


#9

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.