RanniSch / webserv

0 stars 2 forks source link

PROBLEM: Port issues: In the configuration file setup multiple ports and use different websites. Use the browser to ensure that the configuration works as expected and shows the right website. #64

Closed RanniSch closed 10 months ago

RanniSch commented 10 months ago

Tested with "default.conf"

and using http://localhost:8000/upload.html http://localhost:8080/index.html http://localhost:8010/cgi-bin/script-get-2.py?a=w

MaxIhme commented 10 months ago

config: server { listen 8000 8080 8010; ... }

http://localhost:8000/ works http://localhost:8010/dir_listing/ works http://localhost:8080/static_website works

RanniSch commented 10 months ago

@MaxIhme @LukasKava It seg faults. Ports 8000, 8010, 8080 with ./webserv default.conf

in 30% it works, the rest of the time server starts segg faulting while opening the third port image

MaxIhme commented 10 months ago

@LukasKava that is what we had as we were coding together. To handle that you had to copy everything from socket I think.

Hmm, on Docker I get the segfault and for debugging on Mac not :(

Bildschirmfoto 2023-11-01 um 19 33 06
RanniSch commented 10 months ago

All tests work fine