Daniel Bauer wrote:
Am 21.03.20 um 09:05 schrieb Per Jessen:
Daniel Bauer wrote:
Yes, I have firewalld running, I know since 5 minutes :-) I stopped it, and - trara! - it (kind of) works.
So now I have two questions:
- can I open port 80 in firewalld settings (I guess I'll find them somewhere in Yast) without the risk to compromise my computer or the files that are within the local apache directory htdocs...?
Yep. By opening port 80 on that machine, your apache webserver becomes available to your local network only.
Ok, I opened that port, and in fact I can reach the server when the phone is on my wifi-net, but not when it's on the phone-net. Good.
Nice test.
When it doesn't show any images, what do you see instead - a placeholder or just nothing? The former would mean the image wasn't found, if you see nothing at all, something is wrong with the HTML.
I see the "missing image" icon. Styles are not applied, the font is not used, background colors and images do not appear. (Inline styles are applied - this is only a temporary page and I added some styles directly to the lines - but styles from the css-file not)
Okay, so those linked files are not being found.
If you look in the apache logs, you will see 404s for the files that were not found.
This is the log from the very last try. As much as I see all parts were loaded correctly. Still styles are not applied and image not shown on the mobile.
According to the log, as you say, all is being fetched correctly. Weird.
On my local computer the path is /srv/www/htdocs/Entwicklung/project within the php-file pathes are relative it works on the same computer, but not on the phone (but it works on the phone when calling it from the online-internet-server)
"it works on the same computer" ? so when you browse it locally, which address do you use? localhost or 192.168.x.x ? Try it from the local computer, but with 192.168.x.x - that ought to produce the same result as on your phone.
It works on the same computer with 192... https://www.daniel-bauer.com/div/Screenshot_20200321_094033.png
So ... although the images and the css file are fetched by your mobile, they are not shown. It might be interesting to "click" on the missing image on the phone and say "display only image". You would then get to see the URL, maybe to spot the problem ? When the phone has fetched the files, I cannot think of any reason why it would not display them.
Maybe then view the source (ctrl-u) and paste it somewhere for us to see. Or send it to me.
It's not a big secret :-) https://www.daniel-bauer.com/div/index2.html.txt
Hmm, I see no problems there. -- Per Jessen, Zürich (12.2°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org