Hello, I try to compile example hello.c to listening port 80 by modifying this line : mg_set_option(server, "listening_port", "8080"); to mg_set_option(server, "listening_port", "80");
When I run, I'm not able to load the page. Did I missed out anything ? Thank you. Regards, ~sam On Wednesday, April 30, 2014 10:32:41 PM UTC+8, Gustavo Santana wrote: > > Hi Nfer and Sergey, > > thanks for the replies ... I'll try them! > Best regards > > > Atenciosamente, > Gustavo Santana > Diretor de Arte e Tecnologia > www.educatrix.com.br > 31 9258 0762 > > > > On Sun, Apr 27, 2014 at 10:02 PM, Nfer Zhuang <[email protected] > <javascript:>> wrote: > >> Hi, >> I guess you are working on the version 5.1, the latest has a lot of >> changes of the APIs. >> In this version, if you want to load index.html directly, you need remove >> "mg_add_uri_handler" fuction on the uri "/", and set the "document_root" by >> mg_set_option(server, "document_root", "./"); >> >> Nfer >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "mongoose-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/mongoose-users/Qns4Cn1rMpI/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/mongoose-users. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.
