• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Stealth Server?

 
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Carol Murphy
village idiot
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1208
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Glad to know, you found it!
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic