I recently installed apache 2.4 on an openSUSE Leap 15.1 server on an local network, with php enabled. I can access html and php files from a browser on a desktop, but resources (images, css and javascript) are not loaded.
After investigation, it seems that the connection is closed when the browser requests these files but not html or php ones:
C:\Users\PATRICK>curl -v http://myserver/style.css
* Trying 192.168.0.250...
* TCP_NODELAY set
* Connected to myserver (192.168.0.250) port 80 (#0)
> GET /style.css HTTP/1.1
> Host: myserver
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 05 Nov 2019 04:59:19 GMT
< Server: Apache
< Last-Modified: Wed, 30 Oct 2019 06:51:25 GMT
< ETag: "2e5-5961b2954acf9"
< Accept-Ranges: bytes
< Content-Length: 741
< Content-Type: text/css
<
* transfer closed with 741 bytes remaining to read
* Closing connection 0
curl: (18) transfer closed with 741 bytes remaining to read
This behaviour does not occur when querying from the server itself. The apache access logs seem to indicate that, from its perspective, the request was served successfully:
192.168.200.30 - - [05/Nov/2019:04:59:19 +0000] "GET /style.css HTTP/1.1" 200 741 "http://myserver/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0"
I can't figure out what's going on.