{"id":766,"date":"2016-11-07T06:52:49","date_gmt":"2016-11-07T13:52:49","guid":{"rendered":"https:\/\/wmbuck.net\/blog\/?p=766"},"modified":"2016-11-07T06:54:32","modified_gmt":"2016-11-07T13:54:32","slug":"ubuntu-javascript-fail","status":"publish","type":"post","link":"https:\/\/wmbuck.net\/blog\/?p=766","title":{"rendered":"Ubuntu Javascript Fail"},"content":{"rendered":"<p>The &#8220;out of the box&#8221; apache on Ubuntu comes with a &#8220;feature&#8221; called &#8220;javascript-common&#8221; enabled. I haven&#8217;t got much idea what this wretched thing does, other than screw me up. I remember now that I had to struggle this some time back on Cinnamon. Now I am in Ohio trying to get something running on a box there, and tearing my hair out once again over the same issue.<\/p>\n<p>This feature adds an Alias directive that takes the directory &#8220;\/javascript&#8221; and sends it off to \/usr\/share\/javascript. So if you are foolish enough to have a directory in your website called &#8220;\/javascript&#8221; (and who would ever dream of putting their javascript files in a directory called javascript, after all) it will fail.<\/p>\n<p>The directory \/usr\/share\/javascript has some nice stuff in it, including jquery, and I guess it is a nice convenience feature for some people. But am I the only one who things it is crazy for a distribution to do something that breaks websites that have a commonly named directory like javascript!?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &#8220;out of the box&#8221; apache on Ubuntu comes with a &#8220;feature&#8221; called &#8220;javascript-common&#8221; enabled. I haven&#8217;t got much idea what this wretched thing does, other than screw me up. I remember now that I had to struggle this some time back on Cinnamon. Now I am in Ohio trying to get something running on &hellip; <a href=\"https:\/\/wmbuck.net\/blog\/?p=766\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Ubuntu Javascript Fail<\/span> <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":[26,8,4,9,15],"tags":[],"class_list":["post-766","post","type-post","status-publish","format-standard","hentry","category-apache","category-javascript","category-linux","category-ubuntu","category-website-building"],"_links":{"self":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/766"}],"collection":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=766"}],"version-history":[{"count":1,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/766\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wmbuck.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}