Answer the question
In order to leave comments, you need to log in
Apache giving abnormal 302 instead of normal page?
Confused.
There was a site usbflash.ru/ - it worked fine for itself. Now I began to issue 302. Location on itself (which leads to a 310 error in the browser).
In the logs, apache issues 302.
At the same time, www.usbflash.ru/ works fine.
Config:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName usbflash.zcn.ru
ServerAlias usbflash.ru
ServerAlias www.usbflash.ru
DocumentRoot /var/www/usbflash.ru/
ErrorLog /var/log/apache2/error. log
.htaccess file is missing.
I tried to turn off this VirtualHost - the result is the same 302, only www.usbflash.ru starts pointing to the default stub.
What tools can you see and understand what is happening?
Answer the question
In order to leave comments, you need to log in
The X-Powered-By:PHP/5.3.2-1ubuntu4.13 header in the response hints that the redirect is done using php.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question