lpereira / lwan

Experimental, scalable, high performance HTTP server
https://lwan.ws
GNU General Public License v2.0
5.94k stars 548 forks source link

Fail to serve html from binary `lwan` #332

Closed eecheng87 closed 2 years ago

eecheng87 commented 2 years ago

Hi, thanks for your great work first.

I tried to run lwan under lwan/build/src/bin/lwan and used given lwan.conf and wwwroot/ in the top level folder. After launch lwan, I open browser with links: http://0.0.0.0:8080/index.html, then I get 404 not found. I'm wondering do I missing anything?

Thanks in advance.

EDIT: By the same process, lwan works on my virtual machine (both my host and guest OS are Ubuntu 20.04). I have no idea what configuration go wrong on my host. Any troubleshooting?

lpereira commented 2 years ago

I apologize for not seeing this sooner! I changed email providers and some got lost in transit.

You might get 404 if the file you're trying to serve doesn't have world-readable permissions as well. It's usually a good idea to run lwan under strace (following forks, etc) when this happens to know what's happening.

Besides that, I don't really know what could be happening. Were you using straightjackets?

On Sat, Mar 5, 2022, at 9:55 PM, Steven Cheng wrote:

Hi, thanks for your great work first.

I tried to run lwan under lwan/build/src/bin/lwan and used given lwan.conf and wwwroot/ in the top level folder. After launch lwan, I open browser with links: http://0.0.0.0:8080/index.html, then I get 404 not found. I'm wondering do I missing anything?

Thanks in advance.

— Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGOIQT64XHYSKD47JLLU6RCFLANCNFSM5QAVPCDQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.Message ID: @.***>