Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
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
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.