1

I have apache 2.4 running on openSUSE, has been working great for years. A few weeks ago I upgraded from openSUSE 15.0 to 15.1, and suddenly apache would fail to serve static files.

I found that if I set apache to only listen on ipv4, the problem went away.

Some more digging, and now I have enabled port 80 as normal, only listening on ipv4. This works as expected. Then port 81 is listening on ipv6, and here a request will not return anything. Strange thing is, if it is a php page, I DO get a response body from a request, but if it is a static file, nothing. The apache logfile says that the file IS sent, and with the correct size. The browser I'm testing from (on a windows machine), will get all the response headers, but it does NOT receive the response body. The problem is there for any interface that is listening on ipv6, even for access both via ipv4 and ipv6. Interfaces/ports only listening on ipv4 does not expirience this problem.

I am completely lost on this - no idea what the problem can be or how to debug it even further. Anyone having a clue?

-mads

7
  • Why are you using port 81? Have you tried a different client on another network? What is a URL having the problem? Commented Sep 14, 2019 at 18:16
  • Testing on port 81, this way all the websites hosted on the server does not experience the problem, as they would if I tested on port 80. Yes, I have tried on different clients from different networks. ipv6.palustris.dk:81/images/hosted_by_palustris.dk.png gives the problem, whereas palustris.dk/images/hosted_by_palstris.dk.png does not. Even thought these two urls is server by the same virtual host on the same server. Commented Sep 14, 2019 at 19:16
  • Interesting. I don't get a response from the first URL, not even an ACK from the SYN. The second gives me an Apache 404 error page. I note that they have different IPv6 addresses. Is one of them wrong? Commented Sep 14, 2019 at 20:02
  • Sorry, second url is missing a character, it should be: palustris.dk/images/hosted_by_palustris.dk.png - this url does NOT listen on ipv6, only ipv4. The first url not accessible, was my firewall - I had only tested the regular ports from outside my own network, and port 81 is open internally here, but not from the outside - until now. Commented Sep 15, 2019 at 6:43
  • What baffles me the most is that a url like ipv6.palustris.dk:81 will work fine, give me the output I expects. This url is generated by php on the server. But the images required on this page, does not return. I get the headers, but not the image itself. And I have no clue as to why. The server says they are sent, the browser (or curl) never receives them, only the headers. Commented Sep 15, 2019 at 6:50

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.