42Webserver / 42-Vienna-Webserv

This project is about writing our own HTTP server in C++
1 stars 0 forks source link

Location uri #46

Closed Nikster3k closed 2 months ago

Nikster3k commented 2 months ago

if we have root : "/var/www/" and if we have "location /test" and we have uri "domain.com/test/file.txt" we check for a file at "/var/www/file.txt". But when location is "location /test/" same uri we check for "/var/wwwfile.txt" filepath. Lange rede kurzer sinn, wir machen das / weg (vielleicht in modifyUri)?? oder in config parser einfach die / hinten weg machen