LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-02-2003, 05:03 AM   #1
jeffpoulsen
Member
 
Registered: Sep 2002
Posts: 46

Rep: Reputation: 15
Pages served incorrectly


Hey,
I have set a simple web page to serve before I load any sites etc. to the server. When I access the index page from the server it looks fine, all the java applets, and gifs are fine. But when I access the page from another machine the gifs and java applets are empty. What do I need to change to get them to work?
 
Old 04-02-2003, 10:03 AM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Might be a problem with either the permissions on the gifs/applets or that they're in a different directory that isn't accessible to the outside. Make sure that they're in /var/www/html (or wherever apache is set to look) and that they have read priveledges set (chmod a+r filename).
HTH
 
Old 04-02-2003, 10:37 AM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
It might also have to do with the URIs that are used to refer to each resource. Make sure your HREFs and SRCs refer to a legitimate resource on your web server (and not some local file, which would only be accessible from the machine it's on).

Kind of fuzzy description, I know... An example maybe. I'll pretend it's a Windows machine, since that'll make it clearer:

Code:
<img src="C:\WINDOWS\DESKTOP\foo.gif">
Will obviously work on the machine which has foo.gif on its desktop, but when you try to access it from another computer via the web, it won't.

In short, look at the HTML and make sure it makes sense
 
Old 04-02-2003, 08:32 PM   #4
jeffpoulsen
Member
 
Registered: Sep 2002
Posts: 46

Original Poster
Rep: Reputation: 15
Sorry about the lack of details. I have a server running RH 8.0. The other clients on the network are a mix of Win and Linux.
I have mounted a new hard drive as /store to use for the web server. I then copied the /var/www folder and files to the new mount /store. I then did the following:
1 I created a folder /store/www/html/pictures
2 I then created a simple page in Front Page 2000 and loaded it to /store/www/html as Index.html
3 I then loaded the needed gif's etc to /store/www/html/pictures
4 I changed the html to read as follows: src=”/store/www/html/pictures/nameofpic.gif
5 Of course I changed the /etc/httpd/httpd.conf to serve from this folder /store/www/html

It opens properly from the server itself, but not from any other client on the network.
I tried changing the location of the gif to /store/www/html and made the needed change to the html src . Still the same thing. I also checked the file and folder permissions as the folder was 755 and I changed the gif to 755 also. Both are owned by root. Still doesn't work. I hope with more information you may be better able to help. Thanks
 
Old 04-02-2003, 09:27 PM   #5
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Ah! If your httpd.conf file specifies that /store/www/html is the root of your site, then you need to cut that part off of any image, script, or other references you make in your HTML. i.e.:

src="/store/www/html/pictures/nameofpic.gif"

becomes

src="/pictures/nameofpic.gif"

You don't need everyone in the world seeing where on your hard drive the files are stored... all they care about is where it is in relation to the top level of your web site.

Hope this helps!
 
Old 04-03-2003, 06:59 PM   #6
jeffpoulsen
Member
 
Registered: Sep 2002
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks wapcaplet
I know it may look simple to you, but I would have never figured it out. I really don't know HTML or Linux. It work great. I now want to ask a question I have posted before with no real help. I want to chroot Open SSh users. I have tried all the patches, builds, ect., but nothing ever works. Is it possible? Thanks again for the help so far, and if you have any idea's about chrooting OpenSSh that would be fantastic. jeff
 
Old 04-03-2003, 07:34 PM   #7
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Glad to help

I do not know much about openssh (or chrooting) but a quick google search turned up this:

http://archives.neohapsis.com/archiv...1-q4/0197.html

which looks to be a thread on that subject, with some solutions.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Web pages not being served hivtop Linux - General 5 01-12-2005 08:11 AM
how to set descriptions for files served by Apache servnov Linux - Newbie 2 11-12-2004 07:35 AM
Email between Fedora served networks PlorkZ Linux - Networking 1 11-04-2004 04:30 PM
Script to check if webpages are being served?? peeples Linux - Networking 1 09-17-2003 04:44 PM
png images not served by apache ..??? gene_gEnie Linux - Software 2 05-10-2002 08:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration