WindowsのapacheのVirtualHost設定(テスト)
Jul 12, 2010AD:
		
		
	
	WindowsのローカルのVirtualHostでのテスト環境の設定をメモしておきます。
あくまでもテスト環境です。
httpd.conf の設定
XAMPPあたりでapacheをインストールした場合はなどは、C:xamppapacheconfにある
Apacheのhttpd.confを変更します。
ServerNameのコメントアウト
| 1 2 3 4 5 | # If your host doesn't have a registered DNS name, enter its IP address here. # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # <font color="red">#ServerName localhost コメントアウトしてください。</font> | 
Directoryの書き換え
これで、D、Eなどにもてテスト環境が構築できます。
| 1 2 3 4 5 | <Directory />     Options All     AllowOverride All     Order deny,allow </Directory> | 
NameVirtualHost *:80の追加
| 1 | NameVirtualHost *:80 | 
httpd.conf にVirtualHostの設定を追加します。
| 1 2 3 4 | <virtualhost *:80>     <font color="red">DocumentRoot D:work/JCS/wp ドメインのRoot</font>    <font color="red"> ServerName test.local指定したいドメイン</font> </virtualhost> | 
apacheの再起動
サイトが確認できたら終わりです。
		AD:
			
			
		
		
	

 Ayumi Mizoshiri
Ayumi Mizoshiri







No Comments, Comment or Ping
Reply to “WindowsのapacheのVirtualHost設定(テスト)”
Warning: Undefined variable $user_ID in /home/sazaeau/mizoshiri.com/public_html/blog.mizoshiri.com/wp-content/themes/grid_focus_public_mizo/comments.php on line 66
You must be logged in to post a comment.