SlideShare a Scribd company logo
1 of 10
Web サーバ勉強会 - study2study
-
2011/11/02
twitter-id:@hirame_23
担当: UserDir 、 .ht ファイル
設定
93: <IfModule mod_userdir.c>
94: UserDir disable
95: </IfModule>
96: DirectoryIndex index.html index.html.var
97: AccessFileName .htaccess
98: <Files ~ "^.ht">
99: Order allow,deny
100: Deny from all
101: </Files>
<IfModule> ~ </IfModule>
設定値: mod_userdir.c
指定モジュールがロードされいるか評価し、
ロードしていれば </IfModule> までを処理
デフォルトで mod_userdir がロードされている
ため <IfModule> ディレクティブは処理される
UserDir
設定値: disable
ユーザ専用ディレクトリを使用させたい時に使
用するディレクティブ
例) http://example.com/~user/
共用型レンタルサーバで見かける?
disable のため UserDir ディレクティブは無効
化
DirectoryIndex
設定値: index.html index.html.var
ブラウザに http://example.com/ と入力し
た場合に特定のページが出力するのは、
このディレクティブ設定のため
※対象ファイルを配置していなければ 404 …エラーですが 。
AccessFileName
設定値: .htaccess
AllowOverride ディレクティブの設定が All の場
合、コンテキストで『 .htaccess 』と記載され
ているディレクティブが設定可能
手軽に設定可能だが、アクセス毎にファイルを
…探すため多少パフォーマンスに影響も ?
頼り過ぎると管理が面倒だったり
<Files> ~ </Files>
設定値: ~ “^.ht”
~ で正規表現を使用
正規表現“ ^.ht” は、『 .ht で始まる』
ファイル
『 .ht で始まる』ファイルに対して、ア
Order
設定値: allow,deny
allow ディレクティブが deny ディレクティブの
前に評価され、アクセスはデフォルトで拒否さ
れる。
allow ディレクティブに合わないか、 deny ディ
レクティブに合うクライアントはアクセスを拒
Deny
設定値: from all
全て拒否
 『 .ht で始まる』ファイルに対してブラ
ウザからアクセスした場合、 403 エラー
Deny
設定値: from all
全て拒否
 『 .ht で始まる』ファイルに対してブラ
ウザからアクセスした場合、 403 エラー

More Related Content

Featured

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Webサーバ勉強会_93-101担当