Check if an application is accessible when trying to use http://localhost in Unix


 
Thread Tools Search this Thread
Operating Systems Solaris Check if an application is accessible when trying to use http://localhost in Unix
# 1  
Old 10-15-2008
Question Check if an application is accessible when trying to use http://localhost in Unix

Hm am the perfect newbieSmilie

I handle an application on a production servers having a SunOS 5.8 and iplanet webserver instance. Users trying to access it on https are getting "Cannot find the server". I checked with the n/w and secuirty and they said traffic is allowed to the server. Everything was fine till yesterday.

Now I want to check if the server instance is working fine. In windows I could have accessed it as htps://localhost/myapp in a browser to confirm it.

Is there a way I can do this on Unix. Any chance to type in a url and get something back which could be useful

Thanks in advance

Jimmy is trying to walk for the first timeSmilie
# 2  
Old 10-15-2008
Quote:
Originally Posted by JimmyJ
In windows I could have accessed it as htps://localhost/myapp in a browser to confirm it.

Is there a way I can do this on Unix.
Sure, the same way should work the same.

Open a browser on Unix and try accessing https://localhost/myapp

That might not work if the server is bound to a specific IP address. In that case, use that address instead of localhost in the URL.
# 3  
Old 10-15-2008
Oh i should have said that I access the Unix using putty.exe So there is no way I can open a browser (shee again am exposing my wisdom, is it possible in Unix to open a browser)

Also from Windows I need to give https://servername/myapp which definitley is not working. So I wanted to check in Unix to see if https://localhost/myapp will work on the server where application is deployed. This would help me to understand if this is a server problem or is it a network issue.
# 4  
Old 10-15-2008
Quote:
Originally Posted by JimmyJ
Oh i should have said that I access the Unix using putty.exe So there is no way I can open a browser (shee again am exposing my wisdom, is it possible in Unix to open a browser)
Sure, the first web browsers like NCSA Mosaic were already running on Unix some 15 years ago.
Quote:
Also from Windows I need to give https://servername/myapp which definitley is not working. So I wanted to check in Unix to see if https://localhost/myapp will work on the server where application is deployed. This would help me to understand if this is a server problem or is it a network issue.
On the Solaris machine, try "telnet localhost 443" or better "telnet servername 443". If you got "Connection refused", the server might have some trouble.

Alternative commands that might help:
Code:
ifconfig -a
ping servername
netstat -an | grep 443

# 5  
Old 10-15-2008
$ telnet localhost 443
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
$ telnet myserver 443
Trying to connect <ip>
Connected to myserver.


So I guess it is able to connect. Also I was updated that the port is fine, if not there would be mail notifications flowing out...

Is there some command along which I can give the url am trying to access?
# 6  
Old 10-15-2008
Solaris 8 has no standard command to do that. Newer releases have wget bundled.

You might have a look at the web server access and error logs.
# 7  
Old 10-15-2008
Data

Quote:
Originally Posted by jlliagre
Solaris 8 has no standard command to do that. Newer releases have wget bundled.

You might have a look at the web server access and error logs.
Yep, that was what I had always looked for when ever an issue comes, but in this case access logs are not updated, the only lines in the error logs are related to info and warning. These messages used to come now and then even when everything was working fine, one regarding maximum number of session and the other related to default SessionManager being used
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. HP-UX

how to check remote server port listening from application.

Hi, I have an application running on HP-UX, from this application I need to findout if the port number. lets say 7890,7891, 7892 are listening on the remote server running on HP-UX. Is there any way of doing it using "system()" function or any other? I noticed that nmap, netcat are not... (0 Replies)
Discussion started by: einsteinBrain
0 Replies

2. UNIX for Advanced & Expert Users

Setting a permanent global variable in unix accessible from any script

Is there anyway in which i can set a permanent global variable in unix, which when initialised with a value and modified during any shell script, would retain its value even if i logout and login I dont know whether i am being able to express my need clearly but basically what i want is a... (3 Replies)
Discussion started by: arindamlive
3 Replies

3. UNIX for Dummies Questions & Answers

How to check if an application has been installed on a unix/linux box?

hi, guys, now I face a problem. I have developed an application, and when it starts, it shall check if an application has been installed on the running linux/unix. If result is positive, i do something with the application command. just as an example: I want to check if sshd has been... (3 Replies)
Discussion started by: sk1418
3 Replies

4. Shell Programming and Scripting

how to check that nfsmounted filesystem on nfsclient is accessible or not

hello, on Linux machine,how can i check with any command or any trick that nfs mounted file system is actually accessible or not w/o creating any file in nfsmounted location.mount,df -t nfs etc commands will only show mount entries but in case of small storage which is nfs mounted ,how to know... (1 Reply)
Discussion started by: pankajd
1 Replies

5. Shell Programming and Scripting

check if file is being accessed by any application

Hello, is there maybe a way to check if a specific file is being accessed at the moment? Example: You will start copying a 10 GB file from A to B, how could I code it so my script actually knows when file B is finished copying? (1 Reply)
Discussion started by: TehOne
1 Replies

6. OS X (Apple)

Check for open application

Hi there, Is there any command to check if a particular application is open on a mac? thanks :) (3 Replies)
Discussion started by: davewg
3 Replies

7. UNIX for Dummies Questions & Answers

upper limit of accessible memory space for a single process in Unix/Linux

Hellp all, if there is 3G memory in my Unix server I want to know if all the 3G space can be used by ong sigle process. As i know, in Windows, one process can only access at most 1G memory despite there is probably more than 1G memory is equipped. (1 Reply)
Discussion started by: cy163
1 Replies

8. IP Networking

How can I check what port addresses used the application

Hello Mentors! I am a new here in the furom, i hope somebody can understand my problem. Basically we have an application here called unigraphics and being installed per station and the setup is look like this. 1. installed unigraphics UGNX3 version on every station 2. some are installed in... (1 Reply)
Discussion started by: eykyn17
1 Replies

9. UNIX for Dummies Questions & Answers

Unix, Netscape and Localhost

I have configured local host (127.0.0.1) in the hosts file, and the Apache conf file. Why does Netscape take me to a search page when I attempt to go to Http://localhost ?? (4 Replies)
Discussion started by: scruffeone
4 Replies
Login or Register to Ask a Question