1833883 Members
1931 Online
110063 Solutions
New Discussion

Re: Hp Apache WebServer

 
logesh
New Member

Hp Apache WebServer

Hi,
My environment as follows:
O/s: hpux 11iv2 (11.23)
Apache web server 2.0.55

my it team has started the apache web server from the root /opt/hpws/apache

i have made the modifications on httpd.conf where i have made these changes.
(1) listen <8080>
(2) server name : 8080

When i tried to access the url http://ipaddress:8080, its not showing the page instead it says page not found.

if anyone can suggest me some workaround it would be appreciated.
11 REPLIES 11
Mark Nieuwboer
Esteemed Contributor

Re: Hp Apache WebServer

Hi,

Port 8080 is reserverd for https.
so unix will only except https names.
If you realy want to do this you must edit /etc/services/
and make port 8080 the same as 80.
But i would recommended. its better to take a port which is not in use.

grtz. Mark

Florian Heigl (new acc)
Honored Contributor

Re: Hp Apache WebServer

it seems You did everything right, and I also used this setup in a number of occasions.

can You check that
"tcp ipaddress:8080 * "
is listed in the output of:
netstat -na |grep LISTEN

if not, apache has either failed start for some reason, or was not restarted properly
after the configuration update.

also, if using Internet Explorer, You MUST include "http://" in the URL You type in or it will always display the error You see.
yesterday I stood at the edge. Today I'm one step ahead.
Florian Heigl (new acc)
Honored Contributor

Re: Hp Apache WebServer

https uses port 431, btw.
8080 is completely ok for http, though some -idiotic- proxy software uses it instead of 3128.
yesterday I stood at the edge. Today I'm one step ahead.
Jason S. Bailey
New Member

Re: Hp Apache WebServer

https is port 443, not 8080 nor 431, to the best of my knowledge.

logest, cat /etc/servers | grep 8080 and make sure port 8080 isn't reserved on your system for something else.
Srini Jay
Valued Contributor

Re: Hp Apache WebServer

logesh,
1) if you have 'lsof', you can do a 'lsof -i:8080' to see what application/process is listening to port 8080

2) see if there are any errors logged in /logs/error_log & acess_log

-srini
Mark Nieuwboer
Esteemed Contributor

Re: Hp Apache WebServer

Sorry all, i don't know what get into my.
I only can say i'm a little bit sick.
again my appology.

grtz. Mark
Steven E. Protter
Exalted Contributor

Re: Hp Apache WebServer

have made the modifications on httpd.conf where i have made these changes.
(1) listen <8080>
(2) server name : 8080
(3) stop and start the apache server.

You may have done this, but your steps listed are not complete.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jov
Honored Contributor

Re: Hp Apache WebServer

Hi,

From what you've done seem right, with the exception of restarting HTTP (as mentioned above). A "# kill HUP " will do as well.

There could be a few reasons with this issue:

1 - Other configurtion might casue this in http.conf

2 - Another application is using port 8080 (if you have 'lsof', use it to verify).

3 - The version of apache you're running is for another version of HP-UX.

Let us know how you go.


Jov
Jov
Honored Contributor

Re: Hp Apache WebServer

Hi,

From what you've done seem right, with the exception of restarting HTTP (as mentioned above). A "# kill HUP " will do as well.

There could be a few reasons with this issue:

1 - Other configurtion might casue this in http.conf

2 - Another application is using port 8080 (if you have 'lsof', use it to verify).

3 - The default.html or index.html does not exist for whatever reason.

4 - The version of apache you're running is for another version of HP-UX.

Let us know how you go.


Jov
Muthukumar_5
Honored Contributor

Re: Hp Apache WebServer

check 8080 port is in LISTEN state as,

# netstat -na | grep 8080

Did you reconfigure apache after changing configuration in httpd.conf file? So that changes will get EFFECT.

Is there a index.html file in the docsroot directory? Check whether apache is running or not as,

# ps -ef | grep apache

Is there any error messages in apache log file?

Post this information.

-Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: Hp Apache WebServer

Port 8080 is for Tomcat. Make sure there is no port conflict between Tomcat and Apache.
Try this before starting Apache,

# netstat -na |grep -E 8080

and make sure nothing listens on port 8080.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"