{"id":348,"date":"2020-12-10T11:58:33","date_gmt":"2020-12-10T11:58:33","guid":{"rendered":"https:\/\/tech.nes.aau.at\/?p=348"},"modified":"2021-07-25T23:06:10","modified_gmt":"2021-07-25T23:06:10","slug":"starting-a-local-webserver-for-testing","status":"publish","type":"post","link":"https:\/\/tech.nes.aau.at\/?p=348","title":{"rendered":"Starting a local Webserver for Testing"},"content":{"rendered":"\n<p>Easiest way is to open a console window in what you would like to have as root directory of your webserver and start <\/p>\n\n\n\n<p><strong>python -m http.server<\/strong><\/p>\n\n\n\n<p>Then, by serving to http:\/\/127.0.0.1:8000 you will be able to view and browse the contents. <\/p>\n\n\n\n<p>To specify a port, just add the port number to the command, for example<\/p>\n\n\n\n<p><strong>python -m http.server 9999<\/strong><\/p>\n\n\n\n<p>Please not that this webserver does not support https, so you have to enter the URL with a starting http:\/\/ and you might have to click away a browser warning because of the unsecured site.<\/p>\n\n\n\n<p>Therefore, only use this for local testing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Easiest way is to open a console window in what you would like to have as root directory of your webserver and start python -m http.server Then, by serving to http:\/\/127.0.0.1:8000 you will be able to view and browse the &hellip; <a href=\"https:\/\/tech.nes.aau.at\/?p=348\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,27],"tags":[38,34,54,25,21],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-server","category-tips","tag-apple","tag-linux","tag-python","tag-web","tag-windows"],"_links":{"self":[{"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=348"}],"version-history":[{"count":6,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=\/wp\/v2\/posts\/348\/revisions\/358"}],"wp:attachment":[{"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.nes.aau.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}