Operating System - HP-UX
1831219 Members
2850 Online
110021 Solutions
New Discussion

cannot find html file with Apache

 
Jan Kestens
Occasional Contributor

cannot find html file with Apache

Hi all,

I've installed Apache on HP11.11 (ip : 138.203.5.235). If I type in a browser (on aPC)
the IP-address I get the default Apache page.
So to me Apache is up-and-running.

The httpd.conf contains :
DocumentsRoot "/opt/hpws/apache/htdocs".


Later I added html files to this directory and restarted Apache. For example I added a html file called "java.html". If I type in the browser : 138.203.5.235/java.html I get : The requested URL /java was not found on this server. The permissions of thsi file is the same as the files installed by Apache.

What am I doing wrong ?

Greetzz

Jan Kestens
4 REPLIES 4
Denver Osborn
Honored Contributor

Re: cannot find html file with Apache

If you rename it to something like myfile.html, are you able to pull it up?

w/out the brower, what do you get when you...

telnet 138.203.5.235 80
GET /java.html HTTP\1.1


-denver
Steven E. Protter
Exalted Contributor

Re: cannot find html file with Apache

In the httpd.conf there are several references taht could cause this problem. The mostly have to do with the DocumentRoot directive which you already have dealt with.

My thoughts:

Try another name, /java may be an alias the server uses for other purposes.

Possibly upload your httpd.conf file. I have a lot of time playing with this fileon my configuration and might be able to spot something for you.

I suggest you post your httpd.conf file to the forums, as I'm doing some language training and may get distracted from your thread.

SEP
http://www.isnamerica.com/contactsep.shtml

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
Jan Kestens
Occasional Contributor

Re: cannot find html file with Apache

Hi all,

Thanks for the responses, but actually it was
a mistake from my side. I copied the files
to the wrong dir.


I started from scratch, copied the files to the
correct dir and now it is working,



Greetzz

Jan K
Ralph Grothe
Honored Contributor

Re: cannot find html file with Apache

Hi Jan,

I guess your trouble is only caused by a typo.

You said your DocumentRoot was

DocumentsRoot "/opt/hpws/apache/htdocs".

I guess Apache is upset by the redundant s between Document and Root.
Remove it and send the master httpd a SIGUSR1, or simply restart your webserver,
and retry loading the file.

Btw. you don't need to restart your webserver as long as you don't make any changes to cour config, like copying content to your DocumentRoot.
And whenever you applied changes to your conf, and something isn't working as expected, watch your error_log carefully.
Madness, thy name is system administration