LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Linux HTTP server (https://www.linuxquestions.org/questions/linux-server-73/linux-http-server-4175643205/)

eladb 11-27-2018 02:06 PM

Linux HTTP server
 
Hi team,

i would like to get your help.
i set up Linux HTTP server over Centos and ran some http get transaction.
the tcp session open and the client sent get request.
problem description -
the client recive "http 302 found" instead 200 OK.
i try to understand what the root cause but i can not find it.

maybe someone know whats wrong ?

thanks

TB0ne 11-27-2018 03:41 PM

Quote:

Originally Posted by eladb (Post 5930775)
Hi team,

i would like to get your help. i set up Linux HTTP server over Centos and ran some http get transaction. the tcp session open and the client sent get request.
problem description - the client recive "http 302 found" instead 200 OK. i try to understand what the root cause but i can not find it. maybe someone know whats wrong ?

Probably, but you need to read the "Question Guidelines" link in my posting signature. You provide NO useful details (version of CentOS? Which web server? Version? What 'get request' sent? How?), so we cannot even begin to guess. Provide details and we may be able to help.

berndbausch 11-27-2018 04:51 PM

Nothing is wrong. Your server provides another URL in the Location header. Why? Because you configured it so.

How to configure it differently depends on the server. If you want help, see TB0ne’s comments.

smallpond 11-27-2018 04:54 PM

There is Apache, node.js, nginx, and many others, but there is no "Linux HTTP".

scasey 11-27-2018 05:02 PM

Quote:

Originally Posted by berndbausch (Post 5930824)
Nothing is wrong. Your server provides another URL in the Location header. Why? Because you configured it so.

How to configure it differently depends on the server. If you want help, see TB0ne’s comments.

Thanks for the excellent link. I always forget about wikipedia for researching these things.

eladb 11-28-2018 08:58 AM

hi,

i am using linux centos version 7
my setup is 1 virtual client that genrate http get request and centos http server with the address X.X.X.72
the get request → 1 get http://10.210.3.72/index.html
which more information can i give you ?

thanks

berndbausch 11-28-2018 11:04 AM

Quote:

Originally Posted by eladb (Post 5931128)
which more information can i give you ?

What http server it is (probably Apache, but there is no guarantee), how it’s configured, and what is in the Location header of the response.

scasey 11-28-2018 12:25 PM

...and how you are "genrat[ing] http get request ", please.


All times are GMT -5. The time now is 01:00 PM.