<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PHPプログラマのバリ・ポジ情報ブログ &#187; apache</title>
	<atom:link href="http://blog.veryposi.info/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.veryposi.info</link>
	<description>PHP,JavaScriptやサーバーの設定などのプログラミングに関する情報をバリ・ポジティブに発信しているプログラマのブログ、『バリ・ポジ』</description>
	<lastBuildDate>Thu, 10 May 2012 06:23:01 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>CentOSでApacheで403エラーが発生した原因</title>
		<link>http://blog.veryposi.info/server/server-setup/centos-apache-403/</link>
		<comments>http://blog.veryposi.info/server/server-setup/centos-apache-403/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 09:38:12 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[設定]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1184</guid>
		<description><![CDATA[CentOSにApacheでLAMPの環境を作ってテストしようと思って ApacheのDocumentRootをhomeディレクトリ以下にしたら403エラーが発生！！ &#160; う～ん・・・ なんでだろ。エラーが解決 [...]]]></description>
			<content:encoded><![CDATA[<p>CentOSにApacheでLAMPの環境を作ってテストしようと思って</p>
<p>ApacheのDocumentRootをhomeディレクトリ以下にしたら403エラーが発生！！</p>
<p>&nbsp;</p>
<p>う～ん・・・<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/bearing.gif" alt="" /></p>
<p>なんでだろ。エラーが解決できないSELinuxのせいかなと思って無効にしてみてもダメ<img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/down.gif" alt="" /><img src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/down.gif" alt="" /></p>
<p>&nbsp;</p>
<p>色々やってみた結果、原因判明</p>
<p>&nbsp;</p>
<p>なっ、なんとhomeディレクトリの権限が700になっているではないか・・・。</p>
<p>権限を修正</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
</pre>
</td>
<td class="code">
<pre class="bash"><span style="color: rgb(194, 12, 185); font-weight: bold;">chmod</span> <span style="color: rgb(0, 0, 0);">755</span> hashizume</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>するとまぁ、ページを参照できました。</p>
<p>こんなんで1日使ってしまった・・・。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/centos-apache-403/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>apacheのAliasディレクティブの使い方</title>
		<link>http://blog.veryposi.info/server/server-setup/apache%e3%81%aealias%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%86%e3%82%a3%e3%83%96%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9/</link>
		<comments>http://blog.veryposi.info/server/server-setup/apache%e3%81%aealias%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%86%e3%82%a3%e3%83%96%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 05:40:45 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[設定]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=1162</guid>
		<description><![CDATA[Aliasディレクティブの使い方を忘れないうちに書いておきます。 1 2 3 4 5 6 7 8 9 10 11 12 13 Alias /phpmyadmin /home/hashizume/htdocs/phpmya [...]]]></description>
			<content:encoded><![CDATA[<p>Aliasディレクティブの使い方を忘れないうちに書いておきます。</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
6
7
8
9
10
11
12
13
</pre>
</td>
<td class="code">
<pre class="div">
Alias /phpmyadmin /home/hashizume/htdocs/phpmyadmin/
&nbsp;
&lt;Directory /home/hashizume/htdocs/phpmyadmin/&gt;
&nbsp;
    DirectoryIndex index.php
    Options +FollowSymLinks +Indexes
    AllowOverride All
&nbsp;
    order deny,allow
    deny <span style="color: rgb(0, 64, 177);">FROM</span> all
    allow <span style="color: rgb(0, 64, 177);">FROM</span> all
&nbsp;
&lt;/Directory&gt;</pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/apache%e3%81%aealias%e3%83%87%e3%82%a3%e3%83%ac%e3%82%af%e3%83%86%e3%82%a3%e3%83%96%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apacheにバーチャルホスト利用で複数サイトのテスト環境を作成する方法</title>
		<link>http://blog.veryposi.info/server/server-setup/apache-vhost/</link>
		<comments>http://blog.veryposi.info/server/server-setup/apache-vhost/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 11:57:23 +0000</pubDate>
		<dc:creator>gensan</dc:creator>
				<category><![CDATA[設定]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://blog.veryposi.info/?p=633</guid>
		<description><![CDATA[Apacheを利用していてプログラム開発をしていると複数の開発環境がほしい時があると思います。 そんなとき便利な方法を紹介します Apacheのバーチャルホストの機能を利用して複数のテスト環境を用意する方法です。 「XA [...]]]></description>
			<content:encoded><![CDATA[<p>Apacheを利用していてプログラム開発をしていると複数の開発環境がほしい時があると思います。</p>
<p>そんなとき便利な方法を紹介します<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" /></p>
<p>Apacheのバーチャルホストの機能を利用して複数のテスト環境を用意する方法です。</p>
<p>「<a href="http://www.apachefriends.org/jp/xampp-windows.html">XAMPP</a>」を利用して環境を作った場合の設定例です。</p>
<p>今回は、ポート番号を分けることで複数のテスト環境を構築します。</p>
<ol>
<li>まず、「C:\xampp\apache\conf\extra」のフォルダにある「httpd-vhosts.conf」を編集します。<br />
    以下の内容を追記します。</p>
<div class="syntax">
<table>
<tbody>
<tr>
<td class="line_numbers">
<pre>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre>
</td>
<td class="code">
<pre class="php">
Listen <span style="color: rgb(204, 102, 204);">8080</span>
&nbsp;
NameVirtualHost <span style="color: rgb(204, 102, 204);">192.168</span><span style="color: rgb(204, 102, 204);">.25</span><span style="color: rgb(204, 102, 204);">.130</span>:<span style="color: rgb(204, 102, 204);">80</span>
NameVirtualHost <span style="color: rgb(204, 102, 204);">192.168</span><span style="color: rgb(204, 102, 204);">.25</span><span style="color: rgb(204, 102, 204);">.130</span>:<span style="color: rgb(204, 102, 204);">8080</span>
&nbsp;
&lt;VirtualHost <span style="color: rgb(204, 102, 204);">192.168</span><span style="color: rgb(204, 102, 204);">.25</span><span style="color: rgb(204, 102, 204);">.130</span>:<span style="color: rgb(204, 102, 204);">80</span>&gt;
DocumentRoot <span style="color: rgb(255, 0, 0);">&quot;C:/xampp/htdocs&quot;</span>
&lt;/VirtualHost&gt;
&nbsp;
&lt;VirtualHost <span style="color: rgb(204, 102, 204);">192.168</span><span style="color: rgb(204, 102, 204);">.25</span><span style="color: rgb(204, 102, 204);">.130</span>:<span style="color: rgb(204, 102, 204);">8080</span>&gt;
DocumentRoot <span style="color: rgb(255, 0, 0);">&quot;C:/htdocs&quot;</span>
&lt;/VirtualHost&gt;
&nbsp;
&lt;Directory <span style="color: rgb(255, 0, 0);">&quot;C:/htdocs&quot;</span>&gt;
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
&lt;/Directory&gt;</pre>
</td>
</tr>
</tbody>
</table></div>
<p>    これの追記の設定は、8080ポートの追加と、80ポートでアクセスした場合と、8080ポートでアクセスした場合に別ディレクトリを参照するようにしています。<br />
    そして、8080ポート用のディレクトリにアクセス権限を与えています。</li>
</ol>
<p>これで、<br />
「http://192.168.25.130:80」でアクセスした場合は、「C:/xampp/htdocs」を参照し、<br />
「http://192.168.25.130:8080」でアクセスした場合は「C:/htdocs」を参照するようになります。</p>
<p>アクセスポートを追加することで、Apacheが参照するディレクトリを異なるディレクトリに出来るので、複数のテスト環境を簡単に作成することができます<img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/happy01.gif" /><img alt="" src="http://blog.veryposi.info/wp-content/plugins/fckeditor-for-wordpress-plugin/smiles/typepad/scissors.gif" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.veryposi.info/server/server-setup/apache-vhost/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: blog.veryposi.info @ 2026-04-20 00:46:42 -->