LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-27-2018, 02:06 PM   #1
eladb
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
Question 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
 
Old 11-27-2018, 03:41 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by eladb View Post
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.
 
1 members found this post helpful.
Old 11-27-2018, 04:51 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
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.
 
2 members found this post helpful.
Old 11-27-2018, 04:54 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,125

Rep: Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260Reputation: 1260
There is Apache, node.js, nginx, and many others, but there is no "Linux HTTP".
 
Old 11-27-2018, 05:02 PM   #5
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,708

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
Quote:
Originally Posted by berndbausch View Post
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.
 
Old 11-28-2018, 08:58 AM   #6
eladb
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-28-2018, 11:04 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by eladb View Post
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.

Last edited by berndbausch; 11-28-2018 at 11:08 AM.
 
Old 11-28-2018, 12:25 PM   #8
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,708

Rep: Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210Reputation: 2210
...and how you are "genrat[ing] http get request ", please.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie with Apache Server question "ervice - The Apache HTTP Server" vs. "Service - The Apache HTTP Server" HYEARWOOD Linux - Newbie 5 10-17-2017 02:38 AM
CONNECT Method Allowed in HTTP Server Or HTTP Proxy Server Vulnerability zeeshan0431 Linux - Security 1 01-13-2017 08:57 AM
LXer: Apache HTTP Server Adds HTTP/2 Support for Speed and Security LXer Syndicated Linux News 0 10-19-2015 11:21 PM
monodoc-http gives a http 500 internal server error ernesto_cgf Linux - Software 0 05-10-2007 03:48 PM
Apache Related: "http://host/~user" instead of "http://host/~user/" ? scrawl Linux - Software 2 05-19-2003 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration