File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Stealth Server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Stealth Server?" Watch "Stealth Server?" New topic
Author

Stealth Server?

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
This is just plain weird. I have some program acting as a web server on my XP system that is using port 80 and displays a page that says It Works! in bold-face type when directed to localhost. I cannot locate the source of this page that is supposedly on my system. I can't find an html page in any folder that would explain its appearance, nor can I located a jsp for it. This was driving me mad because I thought it was being generated from orion, which I changed to 8080 because 80 was in use. Being somewhat slow, (I'm not the village idiot by chance...) it took me a while to think of directing my browser to localhost:8080 which displayed the desired index page from Orion. Having determined that orion is not the source of this page, how can I find out what is using port 80 on my system, and locate the source of this freaky webpage?
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
I must have spent a good part of the last year in a coma. It seems that when i installed the Collabnet Subversion Server stuff on my system to update the Assignment Log for the Cattle Drive I was installing another server without truly understanding what was going on. So, the stealth server is the Collabnet Server. That still hasn't helped me figure out where this freaky web page is hiding on my system. Anyone have a clue where I should start looking?
I have scoured the Orion and Java directories (where I do my developing) thoroughly, and I can't find the little bastard. I keep thinking it must be an index.html file somewhere, and have looked everywhere for one, but now I'm scared its a jsp buried so deep I'll never find it.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Are you seeing the "Powered by Apache" page? Subversion uses Apache HTTPD. So depending on where you installed the server, you will find the index pages under APACHE_HOME/htdocs. The files are named index.html.xx where xx is the language. There's a mapping file which maps the user's current language setting with the correct index file. So for English, the index file is index.html.en.

[My Blog] [JavaRanch Journal]
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
No, I looked at all of those examples inside the application file and I'm afraid this page is being generated by a servlet somewhere. I'm very sketchy on how this stuff works, but I thought that the index.html was the default unless you changed something in the DD to tell the server to look elsewhere for the index.html page. I can't find this little bugger anywhere inside of the Colabnet folder, where I figured it has to be. Where else would the server look for a default webpage?
This is driving me bonkers.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

If it's a Apache HTTPD server, then the welcome file is configured in the APACHE_HOME/conf/httpd.conf file:

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
okay, well let me qualify what I just posted. Inside the Colabnet file is a folder named httpd and inside this folder is a folder named manual. The index files are located inside of that. There is no folder named Apache in the Colabnet folder that I have been able to locate. I'm assuming the servlet (or html doc) that is being used for the default page is somewhere on my system, I just can't locate in any of my development files, so I'm lost. Where else would this flavor of server look for the default page, and how can I find out where it is looking for it?

*I just got your latest post and looked at the DirectoryIndex variable. It is index.html. I did not change any of these variables when i installed this app. Actually, if I remeber correctly I only installed it so I could use the subversion stuff for keeping the log files up to date when I update the assignment log stuff.

There must be some way to determine where the server is getting the page, or the name of the bloody document, like a TRACE command or something? I don't have much experience with digging into details like this, and if I don't use something often, I tend to forget how to do some of these types of tasks. But I hope there's some way to track this document back to it's little cave and, well, put it out of my misery.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1187
Jaikiran, I just found the little bastard. It was inside the htdocs file, which I looked at yet again, after being sent to the config document by your post and reading a little bit, and there it was. The weird thing is, i looked at this file yesterday, and it didn't show me the same file i'm seeing now, so I have a little more sleuthing to do, but I found it!
If there was a bowing down emoticon, I'd use it here. Many, many thanks!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9317
    
109

Glad to know, you found it!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Stealth Server?
 
Similar Threads
Orion error - NowServlets
Problem withTcpmon and Servlet
Unable to start JBoss 5
BeeServlet and MVC2... again
Tomcat Doubt