{"id":288,"date":"2014-06-21T14:31:25","date_gmt":"2014-06-21T05:31:25","guid":{"rendered":"http:\/\/gomocool.net\/gomokulog\/?p=288"},"modified":"2014-06-24T10:27:50","modified_gmt":"2014-06-24T01:27:50","slug":"xampp%e3%81%ae%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%a7%e8%a4%87%e6%95%b0%e3%82%b5%e3%82%a4%e3%83%88%e3%82%92%e7%ae%a1%e7%90%86","status":"publish","type":"post","link":"https:\/\/gomokulog.gomocool.net\/?p=288","title":{"rendered":"[XAMPP] Apache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u3067\u8907\u6570\u30b5\u30a4\u30c8\u3092\u7ba1\u7406"},"content":{"rendered":"<p>Apache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8(Virtual Host)\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u8907\u6570\u306e\u30b5\u30a4\u30c8\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/p>\n<p>Windows 7 \u3067\u3001XAMPP(v1.8.2)\u3092\u4f7f\u7528\u3057\u305f\u958b\u767a\u74b0\u5883\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3001Web\u30b5\u30a4\u30c8\u3092\u958b\u767a\u3059\u308b\u969b\u306b\u3001<\/p>\n<ul>\n<li>\u30d5\u30a9\u30eb\u30c0\u3054\u3068\u306b\u5206\u3051\u3066\u4f7f\u3046\u65b9\u6cd5\n<div>localhost\/project1\/<br \/>\nlocalhost\/project2\/<\/div>\n<\/li>\n<li>httpd.conf\u3092\u7f6e\u304d\u63db\u3048\u308b\u65b9\u6cd5\n<div>httpd.conf<br \/>\nttpd.conf.project1<br \/>\nhttpd.conf.project2<\/div>\n<\/li>\n<\/ul>\n<p>\u306e\u3069\u3061\u3089\u304b\u3092\u3001\u3084\u308b\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u3001<\/p>\n<p>\u7d76\u5bfe\u30d1\u30b9\u3067\u66f8\u3051\u306a\u304b\u3063\u305f\u308a\u3002<\/p>\n<pre class=\"lang:default decode:true\">&lt;script type=\"text\/javascript\" src=\"\/js\/jquery.js\"&gt;&lt;\/script&gt;<\/pre>\n<p>\u5225\u306e\u3053\u3068\u3084\u3063\u3066\u308b\u6700\u4e2d\u306b\u3001\u524d\u306e\u30b5\u30a4\u30c8\u958b\u304d\u305f\u304f\u306a\u3063\u305f\u6642\u3001httpd.conf\u3092\u7f6e\u304d\u63db\u3048\u3066Apache\u518d\u8d77\u52d5\u3057\u305f\u308a\u3002<\/p>\n<p>\u3084\u3063\u3066\u3066\u3001\u3061\u3087\u3063\u3068\u9762\u5012\u306b\u306a\u3063\u305f\u3089\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u4f7f\u3046\u3068\u3044\u3044\u304b\u3082\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u8a2d\u5b9a\u65b9\u6cd5<\/h2>\n<p>xampp\/apache\/conf\/httpd.conf \u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ini decode:true\"># Virtual hosts\r\nInclude conf\/extra\/httpd-vhosts.conf<\/pre>\n<p>\u4e0a\u8a18\u306e\u69d8\u306a\u8a18\u8ff0\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u5916\u90e8\u30d5\u30a1\u30a4\u30eb\u306ehttpd-vhosts.conf\u306b\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u95a2\u9023\u306e\u8a2d\u5b9a\u304c\u66f8\u3044\u3066\u3042\u308b\u3088\uff5e\u3063\u3066\u3053\u3068\u3067\u3059\u3002<br \/>\n\u3082\u3057\u3001\u5148\u982d\u306b#\u304c\u3042\u3063\u3066\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u3055\u308c\u3066\u3044\u305f\u3089\u53d6\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b\u3001xampp\/apache\/conf\/extra\/httpd-vhosts.conf \u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u305f\u3089\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u9805\u76ee\u304c\u3042\u308b\u306e\u3067\u3001<\/p>\n<pre class=\"lang:ini decode:true\">&lt;VirtualHost *:80&gt;\r\n    ##ServerAdmin webmaster@dummy-host.example.com\r\n    DocumentRoot \"C:\/xampp\/htdocs\/\"\r\n    ServerName localhost\r\n    ##ServerAlias www.dummy-host.example.com\r\n    ##ErrorLog \"logs\/dummy-host.example.com-error.log\"\r\n    ##CustomLog \"logs\/dummy-host.example.com-access.log\" common\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\u3053\u308c\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u3059\u3050\u4e0b\u306b\u5f35\u308a\u4ed8\u3051\u3066\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:ini decode:true\">&lt;VirtualHost *:80&gt;\r\n    DocumentRoot \"F:\\Project\\gomocool\\htdocs\"\r\n    ServerName gomocool.dev\r\n\t&lt;Directory \"F:\\Project\\gomocool\\htdocs\"&gt;\r\n\t\tRequire all granted\r\n\t\tOrder allow.deny\r\n\t\tAllow 127.0.0.1\r\n\t&lt;\/Directory&gt; \r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u304b\u306a\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u8a2d\u5b9a\u3067\u306f\u3001\u958b\u767a\u30de\u30b7\u30f3\u3092\u60f3\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u81ea\u5206\u306e\u30de\u30b7\u30f3\u304b\u3089\u3057\u304b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n(\u3061\u306a\u307f\u306b\u3001CakePHP\u306a\u3069\u306eURL Rewrite \u6a5f\u80fd\u3092\u3064\u304b\u3046\u5834\u5408\u306f\u3001<span class=\"st\">AllowOverride<\/span>\u304c\u5fc5\u8981\u304b\u3082\uff1f)<\/p>\n<p>\u3093\u3067\u3001XAMPP Control Panel \u304b\u3089 Apache\u518d\u8d77\u52d5\u3002<br \/>\n\u66f8\u304d\u65b9\u304c\u5909\u3067\u306a\u3051\u308c\u3070\u7121\u4e8b\u8d77\u52d5\u3059\u308b\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u3053\u306e\u307e\u307e\u3067\u306f\u3064\u306a\u304c\u3089\u306a\u3044\u306e\u3067\u3001hosts\u306b\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<p>C:\\Windows\\System32\\drivers\\etc\\hosts \u3092\u30e1\u30e2\u5e33\u304b\u4f55\u304b\u3067\u958b\u304f\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u7ba1\u7406\u8005\u6a29\u9650\u306e\u30e1\u30e2\u5e33\u306a\u3069\u3067\u958b\u304b\u306a\u3044\u3068\u4e0a\u66f8\u304d\u3067\u304d\u306a\u3044\u3002<br \/>\n\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u306a\u3089\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306b\u30b3\u30d4\u30fc\u3057\u3066\u3001\u30c9\u30e9\u30c3\u30b0\u30fb\u30a2\u30f3\u30c9\u30fb\u30c9\u30ed\u30c3\u30d7\u3067\u4e0a\u66f8\u304d\u3002<\/p>\n<p>\u958b\u3044\u305f\u3089\u3001\u4e00\u756a\u6700\u5f8c\u306e\u884c\u306b\u3001\u5148\u307b\u3069\u306eServerName\u3092\u8ffd\u8a18\u3059\u308b\u3002<\/p>\n<pre class=\"lang:ini decode:true\">127.0.0.1 gomocool.dev\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u306b gomocool.dev\u3000\u3068\u66f8\u3044\u3066\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8(Virtual Host)\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u3001\u8907\u6570\u306e\u30b5\u30a4\u30c8\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002 Windows 7 \u3067\u3001XAMPP(v1.8.2)\u3092\u4f7f\u7528\u3057\u305f\u958b\u767a\u74b0\u5883\u3092\u60f3\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002 \u8907\u6570\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3001Web\u30b5\u30a4&hellip;  <a href=\"https:\/\/gomokulog.gomocool.net\/?p=288\" class=\"more-link\">more <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[69],"tags":[42],"class_list":["post-288","post","type-post","status-publish","format-standard","hentry","category-69","tag-xampp"],"_links":{"self":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=288"}],"version-history":[{"count":9,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/288\/revisions"}],"predecessor-version":[{"id":309,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=\/wp\/v2\/posts\/288\/revisions\/309"}],"wp:attachment":[{"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gomokulog.gomocool.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}