LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-15-2015, 06:21 AM   #1
hruday
Member
 
Registered: Jun 2015
Posts: 88

Rep: Reputation: Disabled
HTTP/1.1 404 Not Found error in Web Server


I am running 3 jboss instances in my web server. Each jboss instance has its own port.
Now trying to get header using the command

curl -s --connect-timeout 360 -m 360 --head http://localhost:8686/ then i get the following error

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 15 Oct 2015 10:59:54 GMT



but the same command is working for another jboss port 8585
curl -s --connect-timeout 360 -m 360 --head http://localhost:8585/

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Accept-Ranges: bytes
ETag: W/"2432-1331318642000"
Last-Modified: Fri, 09 Mar 2012 18:44:02 GMT
Content-Type: text/html
Content-Length: 2432
Date: Thu, 15 Oct 2015 11:19:15 GMT


what changes should i do to get the header for 8686 port?
 
Old 10-21-2015, 09:21 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
The server on 8686 doesn't have files in DOCUMENT_ROOT???
 
Old 10-22-2015, 03:40 AM   #3
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
or check whether port 8686 is listening.

nmap -sT -O localhost | grep "8686"
 
Old 10-22-2015, 03:13 PM   #4
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
or check whether port 8686 is listening.
The server responded so the port is listening.
 
Old 10-23-2015, 02:43 AM   #5
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
nmap -sT -O localhost | grep "8686" is not showing any output.
 
Old 10-26-2015, 01:05 AM   #6
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Cool

Quote:
Originally Posted by hruday View Post
nmap -sT -O localhost | grep "8686" is not showing any output.
if it is not showing any output it means that port 8686 is not in used.

you need to check Apache settings whether 8686 is assigned. Since you have 8585 up and running just follow the settings.

Or check your firewall whether 8686 is not block.

Last edited by JJJCR; 10-26-2015 at 01:07 AM. Reason: edit
 
Old 10-27-2015, 03:43 AM   #7
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
@JJJCR thanks for the reply

neither of the ports are showing output
I tried both commands

nmap -sT -O localhost | grep "8686"
nmap -sT -O localhost | grep "8585"

even tried whether they are listening or not

netstat -lntu
tcp 0 0 127.0.0.1:8585 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:8686 0.0.0.0:* LISTEN
 
Old 10-28-2015, 03:23 AM   #8
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
what is the default location of your document root in apache?
 
Old 10-28-2015, 10:56 AM   #9
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
/var/www/html
 
Old 10-28-2015, 08:20 PM   #10
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
have you tried this:

curl -k -s --connect-timeout 360 -m 360 --head http://localhost:8686/
 
Old 10-29-2015, 03:15 AM   #11
hruday
Member
 
Registered: Jun 2015
Posts: 88

Original Poster
Rep: Reputation: Disabled
Same output @JJJJCR

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 29 Oct 2015 08:16:15 GMT
 
Old 10-29-2015, 08:09 PM   #12
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 2,150

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
Quote:
Originally Posted by hruday View Post
Same output @JJJJCR

HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Thu, 29 Oct 2015 08:16:15 GMT
Is there an html on this: http://localhost:8686/
Is the page displaying properly?
 
  


Reply



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
error 404 requested URL /statusmeldung was not found on this server lawassi Linux - Newbie 2 09-30-2012 02:30 AM
Apache2 - file not found gets 500 Server Error instead of 404 Skaperen Linux - Software 5 01-30-2012 04:15 PM
[SOLVED] http 404 error ansrewdps Linux - Server 11 02-08-2011 10:48 AM
http 404 , the page connot be found alsaaf Linux - General 3 12-11-2006 06:34 AM

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

All times are GMT -5. The time now is 02:26 AM.

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