Quick description: I have a home network with a Linux box running an Apache server, and a Windows 10 box without a web server. both machines have similar directory structures for .html files and images, etc. When I display a page (any page) via the server it/they work fine. When I display identical pages on the Windows machine directly through its browser they work fine. But, when I display the Windows’ page through the web server (details below), all of the images break. There are no error messages in the console.
Some background: I usually create my html on the Windows machine, just using the local browser for verification, and then move it to my …/public_html directory when ready. But, I recently started dabbling in .php and that doesn’t work without a server. I have the Linux directory shared on the Windows machine, and have been working the php stuff directly from the Linux directory, but I really don’t like mucking up my “production” environment with development crap. That, and some other ideas I was working with got me to looking into alternative solutions. After reading the documentation for installing an Apache server on the Windows machine, I really didn’t want that kind of pain, so I came up with this idea, instead.
Details: I have shared the Windows html directory and mounted it on Linux as /var/www/html/windows*. (I have no idea if this is good practice, and am not really concerned, since this is all in-house, personal use.) It works. I can point to the .php files on the Windows directory, and they work just fine. However, none of the images display. There are no error messages in the console. I can “see” all of the image files in the Linux directory, and they have rwxr-xr-x permissions. I have no idea how to even begin a search on the techie websites, and am not inclined to do so anyway, since this is my own personal use, not work related, and I’m really more interested in what is (not) going on here, rather than being scolded for not using best practices.
- for what it is worth, I chose to mount it under /var/www/html rather than …/public_html because the …/public_html is part of the directory shared to Windows, and I wasn’t sure how that kind of circular referencing would work (or not work.)
More background, in case you’re interested. I was an applications programmer for 25 years (mostly main-frame, but some Unix and Windows NT, with enough web development in the later years to know basic html and javascript to do my job. I was by no means a web developer. But I have been retired for 17 years, so most of that is old technology. Now, I keep myself entertained with my own suite of in-house (literally) applications, which I am constantly dickering with.
So I am throwing this out there for anyone who likes to solve problems. Thanks in advance for any light you can shed on this.