LinuxQuestions.org
Review your favorite Linux distribution.
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 Today, 04:32 AM   #31
sag2662
Member
 
Registered: Sep 2022
Posts: 67

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by murugesandins View Post
other errors error here too on using your file for my testing.
you need to analyze log files
Example:
Code:
$ cd /home/Murugesan/Din_Back/apache-tomcat-11.0.0-M19/conf
$ grep -i error ../logs/catalina.2024-04-30.log
Hi how to disable the url https://example.com/example but only https://example.com should work

Last edited by sag2662; Today at 07:30 AM.
 
Old Today, 08:09 AM   #32
murugesandins
Member
 
Registered: Apr 2024
Location: Bangalore Karnataka India
Distribution: CYGWIN_NT
Posts: 51

Rep: Reputation: 0
Wait until I set all required settings at 127.0.0.1 to make my tomcat to listen to available port numbers.
Example ports I have found till now:
Code:
#0.0.0.0:22     sshd.exe
#0.0.0.0:135    svchost.exe
#0.0.0.0:1801   mqsvc.exe
I knew that following comment 10% not related to your query,
Code:
#!/bin/bash
IPv4=$(/cygdrive/c/WINDOWS/system32/ipconfig.exe 2>&1 | /usr/bin/tr -d "\r" | /usr/bin/awk '"IPv4" == $1 { print $NF}')
#0.0.0.0:22     %HOME%\..\..\usr\sbin\sshd.exe
#[::]:22        %HOME%\..\..\usr\sbin\sshd.exe
#0.0.0.0:49665  C:\WINDOWS\system32\wininit.exe
#[::]:49665     C:\WINDOWS\system32\wininit.exe
#0.0.0.0:49668  C:\WINDOWS\system32\spoolsv.exe
#[::]:49668     C:\WINDOWS\system32\spoolsv.exe
#0.0.0.0:49669  C:\WINDOWS\system32\svchost.exe
#[::]:49669     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49667  C:\WINDOWS\system32\svchost.exe
#[::]:49667     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49666  C:\WINDOWS\system32\svchost.exe
#[::]:49666     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:5040   C:\WINDOWS\system32\svchost.exe
#0.0.0.0:135    C:\WINDOWS\system32\svchost.exe
#[::]:135       C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49664  C:\WINDOWS\system32\lsass.exe
#[::]:49664     C:\WINDOWS\system32\lsass.exe
#0.0.0.0:49671  C:\WINDOWS\system32\services.exe
#[::]:49671     C:\WINDOWS\system32\services.exe
#0.0.0.0:49670  C:\WINDOWS\system32\mqsvc.exe
#[::]:49670     C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:1801   C:\WINDOWS\system32\mqsvc.exe
#[::]:1801      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2103   C:\WINDOWS\system32\mqsvc.exe
#[::2103]]      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2107   C:\WINDOWS\system32\mqsvc.exe
#[::]:2107      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2105   C:\WINDOWS\system32\mqsvc.exe
#[::]:2105      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:5357   System
#[::]:5357      System
#$IPv4:139      System
/cygdrive/c/WINDOWS/system32/netstat.exe -nato 2>&1 |\
/usr/bin/grep -E -v "\
\[::\]:22|\
0.0.0.0:22|\
0.0.0.0:135|\
\[::\]:135|\
$IPv4:139|\
0.0.0.0:1801|\
\[::\]:1801|\
0.0.0.0:2103|\
\[::\]:2103|\
0.0.0.0:2105|\
\[::\]:2105|\
0.0.0.0:2107|\
\[::\]:2107|\
0.0.0.0:5357|\
\[::\]:5357|\
0.0.0.0:49664|\
\[::\]:49664|\
0.0.0.0:49665|\
\[::\]:49665|\
0.0.0.0:49666|\
\[::\]:49666|\
0.0.0.0:49667|\
\[::\]:49667|\
0.0.0.0:49668|\
\[::\]:49668|\
0.0.0.0:49669|\
\[::\]:49669|\
0.0.0.0:49670|\
\[::\]:49670|\
0.0.0.0:49671|\
\[::\]:49671|\
0.0.0.0:5040" |\
/usr/bin/grep LISTEN
Hence I need to use the port at tomcat excluding following ports at localhost:
Code:
22
135
139
1801
2103
2105
2107
5040
5357
49664
49665
49666
49667
49668
49669
49670
49671

Last edited by murugesandins; Today at 08:34 AM. Reason: ports I should not use at localhost
 
Old Today, 09:00 AM   #33
sag2662
Member
 
Registered: Sep 2022
Posts: 67

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by murugesandins View Post
Wait until I set all required settings at 127.0.0.1 to make my tomcat to listen to available port numbers.
Example ports I have found till now:
Code:
#0.0.0.0:22     sshd.exe
#0.0.0.0:135    svchost.exe
#0.0.0.0:1801   mqsvc.exe
I knew that following comment 10% not related to your query,
Code:
#!/bin/bash
IPv4=$(/cygdrive/c/WINDOWS/system32/ipconfig.exe 2>&1 | /usr/bin/tr -d "\r" | /usr/bin/awk '"IPv4" == $1 { print $NF}')
#0.0.0.0:22     %HOME%\..\..\usr\sbin\sshd.exe
#[::]:22        %HOME%\..\..\usr\sbin\sshd.exe
#0.0.0.0:49665  C:\WINDOWS\system32\wininit.exe
#[::]:49665     C:\WINDOWS\system32\wininit.exe
#0.0.0.0:49668  C:\WINDOWS\system32\spoolsv.exe
#[::]:49668     C:\WINDOWS\system32\spoolsv.exe
#0.0.0.0:49669  C:\WINDOWS\system32\svchost.exe
#[::]:49669     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49667  C:\WINDOWS\system32\svchost.exe
#[::]:49667     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49666  C:\WINDOWS\system32\svchost.exe
#[::]:49666     C:\WINDOWS\system32\svchost.exe
#0.0.0.0:5040   C:\WINDOWS\system32\svchost.exe
#0.0.0.0:135    C:\WINDOWS\system32\svchost.exe
#[::]:135       C:\WINDOWS\system32\svchost.exe
#0.0.0.0:49664  C:\WINDOWS\system32\lsass.exe
#[::]:49664     C:\WINDOWS\system32\lsass.exe
#0.0.0.0:49671  C:\WINDOWS\system32\services.exe
#[::]:49671     C:\WINDOWS\system32\services.exe
#0.0.0.0:49670  C:\WINDOWS\system32\mqsvc.exe
#[::]:49670     C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:1801   C:\WINDOWS\system32\mqsvc.exe
#[::]:1801      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2103   C:\WINDOWS\system32\mqsvc.exe
#[::2103]]      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2107   C:\WINDOWS\system32\mqsvc.exe
#[::]:2107      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:2105   C:\WINDOWS\system32\mqsvc.exe
#[::]:2105      C:\WINDOWS\system32\mqsvc.exe
#0.0.0.0:5357   System
#[::]:5357      System
#$IPv4:139      System
/cygdrive/c/WINDOWS/system32/netstat.exe -nato 2>&1 |\
/usr/bin/grep -E -v "\
\[::\]:22|\
0.0.0.0:22|\
0.0.0.0:135|\
\[::\]:135|\
$IPv4:139|\
0.0.0.0:1801|\
\[::\]:1801|\
0.0.0.0:2103|\
\[::\]:2103|\
0.0.0.0:2105|\
\[::\]:2105|\
0.0.0.0:2107|\
\[::\]:2107|\
0.0.0.0:5357|\
\[::\]:5357|\
0.0.0.0:49664|\
\[::\]:49664|\
0.0.0.0:49665|\
\[::\]:49665|\
0.0.0.0:49666|\
\[::\]:49666|\
0.0.0.0:49667|\
\[::\]:49667|\
0.0.0.0:49668|\
\[::\]:49668|\
0.0.0.0:49669|\
\[::\]:49669|\
0.0.0.0:49670|\
\[::\]:49670|\
0.0.0.0:49671|\
\[::\]:49671|\
0.0.0.0:5040" |\
/usr/bin/grep LISTEN
Hence I need to use the port at tomcat excluding following ports at localhost:
Code:
22
135
139
1801
2103
2105
2107
5040
5357
49664
49665
49666
49667
49668
49669
49670
49671
FYI. I just forwaded the rules from 443 to 8443 and hence the url started working.
But I wonder if [url]https://server.com:8443/towll

Thanks for your support

Last edited by sag2662; Today at 01:40 PM.
 
  


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
LXer: How to set up Apache webserver proxy in front of Apache Tomcat on Red Hat Linux LXer Syndicated Linux News 0 10-01-2018 01:32 PM
apache webserver and tomcat fachhoch@gmail.com Linux - Newbie 1 05-11-2012 09:40 PM
Session replication using apache+mod_jk+tomcat(5.5.28-veriosn of tomcat) sreejithp Linux - Server 1 12-24-2010 06:46 AM
apache-tomcat and jakarta-tomcat shifter Programming 1 07-28-2007 10:36 PM
Why use Apache with Tomcat rather than just Tomcat itself? davee Linux - Software 1 08-21-2003 09:47 PM

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

All times are GMT -5. The time now is 03:52 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