{"id":2437,"date":"2012-09-01T14:58:20","date_gmt":"2012-09-01T05:58:20","guid":{"rendered":"http:\/\/mike.md.tsukuba.ac.jp\/terui\/blog\/?p=2437"},"modified":"2021-12-29T19:11:35","modified_gmt":"2021-12-29T10:11:35","slug":"%e5%90%84%e3%83%a6%e3%83%bc%e3%82%b6%e3%81%aeweb-page-%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/nbsigh2.com\/?p=2437","title":{"rendered":"OSX10.8\u30b5\u30fc\u30d0\u3000\u305d\u306e\uff11\uff10\u3000Web\u30b5\u30fc\u30d0\u305d\u306e\uff11"},"content":{"rendered":"<div>M\u306e\u66f4\u65b0(Mountain Lion OSX10.8\u30b5\u30fc\u30d0) \u305d\u306e\uff11\uff10\u30fcWeb\u30b5\u30fc\u30d0\u305d\u306e\uff11<\/div>\n<div><\/div>\n<div id=\"_mcePaste\">######\u5404\u30e6\u30fc\u30b6\u306eweb page \u3092\u4f5c\u308b########<\/div>\n<div id=\"_mcePaste\">\/Library\/Server\/web\/config\/apache2\/ReadMe.txt \u3092\u8aad\u3080\u3068<\/div>\n<div>%%%%%%%%%%%%%%%%<\/div>\n<div>httpd_server_app.conf<\/div>\n<div>This is the primary configuration file read by Apache. Note that it differs from \u00a0 the httpd.conf distributed with Apache. It is specific to Server&#8217;s Apache confi \u00a0guration, and takes the place of the desktop Apache configuration in \/etc\/apache \u00a02\/httpd.conf.<\/div>\n<div>\n<div>httpd_server_app.conf.default<\/div>\n<div>This file is the default version of httpd_server_app.conf. It is not processed b \u00a0y Apache; it is available to administrators who have modified httpd_server_app.conf and want to recover the original settings. During a software update or an up \u00a0grade install, a new version of this file may be installed. During a &#8220;restore fa \u00a0ctory settings&#8221; operation, this file replaces httpd.conf.<\/div>\n<\/div>\n<div>\n<div>sites\/0000_any_80_.conf<\/div>\n<div>sites\/0000_any_443_.conf<\/div>\n<div>These are the configuration files for the default virtual host (&#8220;Server Website&#8221; \u00a0 in the UI), and default SSL virtual host (&#8220;Server Website (SSL)&#8221; in the UI), re \u00a0spectively; the ones that listen on all IP addresses when any web-based service \u00a0 is enabled from the Server application.<\/div>\n<div>&#8230;&#8230;..but it&#8217;s strongly recommended that adminis \u00a0trator put changes in separate &#8220;Include&#8221; files&#8230;&#8230;&#8230;<\/div>\n<\/div>\n<div>\n<div>Library\/Server\/Web\/Data\/Sites\/Default\/<\/div>\n<div>This is the default DocumentRoot for the default wild-card site. If you create c \u00a0ustom content, place an index.html or index.php file in this folder and it will \u00a0 take precedence over the default.html file Apple installs there.<\/div>\n<\/div>\n<div>%%%%%%%%%%%%%%%%<\/div>\n<div>\/Library\/Server\/web\/config\/apache2\/httpd_server_app.conf<\/div>\n<div>\u304cApache\u306e\u6700\u521d\u306b\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308a\u3001\/etc\/apache2\/httpd.conf\u306b\u53d6\u3063\u3066\u4ee3\u308f\u308b\u3082\u306e\u3067\u3042\u308b\u3068\u66f8\u3044\u3066\u3042\u308b\u3002\u3060\u304b\u3089apache2\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\u3053\u3068\u306b\u306a\u308b\u3002\u3053\u306e\u6587\u66f8\u306e\u6700\u5f8c\u306b<\/div>\n<div>\n<div>To restore the default configuration, from Terminal app:<\/div>\n<div>sudo \/Applications\/Server.app\/Contents\/ServerRoot\/usr\/sbin\/serveradmin command web:command=restoreFactorySettings<\/div>\n<div>\u3068\u3042\u308b\u306e\u3067\u3001\u306a\u3093\u3060\u304b\u3067\u305f\u3089\u3081\u306b\u306a\u3063\u305f\u3089\u3053\u308c\u304c\u4f7f\u3048\u308b\u3002<\/div>\n<\/div>\n<div>\/Library\/Server\/web\/config\/apache2\/httpd_server_app.conf \u306e\uff11\uff18\uff17\u884c\u76ee\u306b\u30b5\u30fc\u30d0\u7ba1\u7406\u8005\u306e\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3092\u8a18\u5165\u3059\u308b\u3068\u3053\u308d\u304c\u3042\u308b\u3002<\/div>\n<div>\uff11\uff19\uff18\u884c\u76ee\u306bDocumentRoot \/var\/empty\u3068\u3042\u308b\u3002\u306a\u3093\u304b\u304a\u304b\u3057\u3044\u306a\u3002\u5f53\u7136\/var\/empty\u306b\u306f\u306a\u306b\u3082\u306a\u3044\u304b\u3089\u306a\u3002<\/div>\n<div>\uff13\uff14\uff19\u884c\u76ee\u4ee5\u964d\u306b<\/div>\n<div>\n<div># &#8220;\/Library\/WebServer\/CGI-Executables&#8221; should be changed to whatever your ScriptAliased<\/div>\n<div># CGI directory exists, if you have that configured.<\/div>\n<div>#<\/div>\n<div>&lt;Directory &#8220;\/Library\/Server\/Web\/Data\/CGI-Executables&#8221;&gt;<\/div>\n<div>AllowOverride None<\/div>\n<div>Options None<\/div>\n<div>Order allow,deny<\/div>\n<div>Allow from all<\/div>\n<div>&lt;\/Directory&gt;<\/div>\n<div>\u3068\u3042\u308b\u3002CGI\u304c\u3067\u304d\u308bdirectory\u306f\u3001\u3053\u308c\u307e\u3067\u3060\u3063\u305f\u3089\/Users\/*\/Sites\/cgi-bin\u3068\u306a\u308b\u3068\u3053\u308d\u3060\u3002<\/div>\n<\/div>\n<div>\uff16\uff10\uff15\u884c\u76ee\u4ee5\u964d\u306b<\/div>\n<div>\n<div>&lt;IfDefine WEBSERVICE_ON&gt;<\/div>\n<div>Include \/Library\/Server\/Web\/Config\/apache2\/sites\/*.conf<\/div>\n<div>&lt;\/IfDefine&gt;<\/div>\n<div>\u3068\u3042\u308b\u3001\u3053\u308c\u304cServer.app\u306eWeb\u306eON-OF\u3067\u5909\u5316\u3059\u308b\u3068\u3053\u308d\u306e\u3088\u3046\u3060\u3002<\/div>\n<\/div>\n<div>default \u3067\u306f<\/div>\n<div>\/library\/server\/web\/data\/sites\/default<\/div>\n<div>\u3092\u898b\u306b\u884c\u304f\u3088\u3046\u3067\u3001\u65e5\u672c\u8a9e\u3067\u306fdefault.html.ja\u3092\u3055\u3057\u3057\u3081\u3059\u304c\u3001\u3053\u308c\u306f\u5b9f\u306f\u30a8\u30a4\u30ea\u30a2\u30b9\u3067<\/div>\n<div>\/Applications\/Server.app\/Contents\/ServerRoot\/usr\/share\/web\/locales\/ja.lproj\/default.html<\/div>\n<div>\u306e\u30da\u30fc\u30b8\u304c\u63d0\u793a\u3055\u308c\u308b\u3002<\/div>\n<div>Server.app\u304b\u3089\u3069\u3046\u3084\u3063\u3066\u5404\u30e6\u30fc\u30b6\u306e\u30da\u30fc\u30b8\u3092\u6307\u5b9a\u3057\u3066\u3044\u3044\u306e\u304b\u308f\u304b\u3089\u306a\u3044\u3002<\/div>\n<div>[\u8ffd\u8a18]<\/div>\n<div>\u5404\u30e6\u30fc\u30b6\u306eSites\u304c\u898b\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u306f\uff1b<\/div>\n<div>\uff33\uff45\uff52\uff56\uff45\uff52\uff0e\uff41\uff50\uff50\u3067Web\u30b5\u30a4\u30c8\u3092\u9078\u629e\u3057<\/div>\n<div><a href=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3596 size-medium\" src=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-1-300x168.png\" alt=\"20130816websites-1\" width=\"300\" height=\"168\" srcset=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-1-300x168.png 300w, https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-1.png 754w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div><\/div>\n<div>\u4e0b\u306e\u925b\u7b46\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066<\/div>\n<div><a href=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3597 size-medium\" src=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-2-300x171.png\" alt=\"20130816websites-2\" width=\"300\" height=\"171\" srcset=\"https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-2-300x171.png 300w, https:\/\/nbsigh2.com\/wp-content\/uploads\/2012\/09\/20130816websites-2.png 756w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div><\/div>\n<div>\u30b5\u30a4\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u4fdd\u5b58\u5834\u6240\u3092\/Library\/Server\/Web\/Data\/Sites\/Default \u306b\u3059\u308b\u3002\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u304cWeb\u3067\u516c\u958b\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u306a\u308b\u3002<\/div>\n<div>\/Library\/Server\/Web\/Data\/Sites\/Default \u5185\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u5f35\u308b\u3002<\/div>\n<div>\u305f\u3068\u3048\u3070\u30e6\u30fc\u30b6\u540d\u304choge\u306e\u5834\u5408\u3001\/User\/hoge \u306bSites \u3068\u3044\u3046directory \u3092\u4f5c\u6210\u3057\u3053\u306e\u4e2d\u306bWeb\u516c\u958b\u3059\u308b\u30da\u30fc\u30b8\u3092\u5165\u308c\u3066\u304a\u304f\u3002<\/div>\n<div>ln -s\u3000\/User\/hoge\/Sites\/ \/Library\/Server\/Web\/Data\/Sites\/Default\/hoge<\/div>\n<div>\u3068\u3059\u308c\u3070\u3001\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u5f35\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30e6\u30fc\u30b6hoge\u541b\u306f\u81ea\u5206\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3042\u308b\/users\/hoge \u306esites\u5185\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3051\u3070http:\/\/excample.com\/hoge\/ \u3067\u516c\u958b\u3067\u304d\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/div>\n<div>\u3053\u308c\u3089\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081\u306b\u306f\u6b21\u30da\u30fc\u30b8\u79fb\u884c\u306e\u8a2d\u5b9a\u3092\u304a\u3053\u306a\u3063\u3066\u3061\u3087\u3046\u3060\u3044\u3002<\/div>\n<div><\/div>\n<div>\u6700\u7d42\u7684\u306b\u306f\u89e3\u6c7a\u3057\u305f\u3002<a href=\"https:\/\/nbsigh2.com\/?p=2492\" target=\"_blank\" rel=\"noopener\">\u3053\u3063\u3061\u3092\u8aad\u3093\u3067<\/a>\u3061\u3087\u3046\u3060\u3044\u3002<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t<![CDATA[]]>\t\t<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,3],"tags":[],"class_list":["post-2437","post","type-post","status-publish","format-standard","hentry","category-mountain-lion-server","category-3"],"_links":{"self":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2437"}],"version-history":[{"count":4,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions"}],"predecessor-version":[{"id":22419,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=\/wp\/v2\/posts\/2437\/revisions\/22419"}],"wp:attachment":[{"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nbsigh2.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}