diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:19 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:45 +0100 |
commit | 2a463b3cd73c32ee9dcd508248d0194923f435f4 (patch) | |
tree | 2ff478255a77a55031056790918b6f983bb7b20a /docs/manual/mod/core.html.tr.utf8 | |
parent | 86d5cc79d9d6750da8771fdb0c9ab22c19b8ad45 (diff) | |
download | apache2-upstream/2.4.9.tar.gz |
Imported Upstream version 2.4.9upstream/2.4.9
Diffstat (limited to 'docs/manual/mod/core.html.tr.utf8')
-rw-r--r-- | docs/manual/mod/core.html.tr.utf8 | 363 |
1 files changed, 150 insertions, 213 deletions
diff --git a/docs/manual/mod/core.html.tr.utf8 b/docs/manual/mod/core.html.tr.utf8 index 4a6675b2..2e91a2f0 100644 --- a/docs/manual/mod/core.html.tr.utf8 +++ b/docs/manual/mod/core.html.tr.utf8 @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -143,9 +143,7 @@ httpd 2.1.5 ve sonrasında mevcuttur.</td></tr> gibi sunucunun baştan bir veri göndermesinin gerekli olduğu protokoller için kullanışlıdır. Örnek:</p> - <pre class="prettyprint lang-config"> - AcceptFilter nntp none - </pre> + <pre class="prettyprint lang-config">AcceptFilter nntp none</pre> <p>Öntanımlı protokol isimleri port 443 için <code>https</code> ve tüm @@ -154,10 +152,8 @@ httpd 2.1.5 ve sonrasında mevcuttur.</td></tr> argümanını ekleyin.</p> <p>FreeBSD için öntanımlı değerler:</p> - <pre class="prettyprint lang-config"> -AcceptFilter http httpready -AcceptFilter https dataready - </pre> + <pre class="prettyprint lang-config">AcceptFilter http httpready +AcceptFilter https dataready</pre> <p><code>httpready</code> kabul süzgeci HTTP isteklerinin tamamını @@ -166,10 +162,8 @@ AcceptFilter https dataready şifrelenmiş olduğundan sadece <a href="http://www.freebsd.org/cgi/man.cgi?query=accf_data&sektion=9">accf_data(9)</a> süzgeci kullanılır.</p> <p>Linux’taki öntanımlı değerler:</p> - <pre class="prettyprint lang-config"> -AcceptFilter http data -AcceptFilter https data - </pre> + <pre class="prettyprint lang-config">AcceptFilter http data +AcceptFilter https data</pre> <p>Linux’un <code>TCP_DEFER_ACCEPT</code> soket seçeneği HTTP isteklerinin @@ -180,10 +174,8 @@ AcceptFilter https data <p>Windows’taki öntanımlı değerler::</p> - <pre class="prettyprint lang-config"> -AcceptFilter http data -AcceptFilter https data - </pre> + <pre class="prettyprint lang-config">AcceptFilter http data +AcceptFilter https data</pre> <p>Windows'un <code>mpm_winnt</code> modülü <code>AcceptEx()</code> @@ -263,13 +255,11 @@ AcceptFilter https data normal olarak isteği reddederdi, böyle bir durumda bir betiği etkin kılmak için aşağıdaki gibi bir yapılandırma kullanabilirsiniz:</p> - <pre class="prettyprint lang-config"> -<Files "mypaths.shtml"> + <pre class="prettyprint lang-config"><Files "mypaths.shtml"> Options +Includes SetOutputFilter INCLUDES AcceptPathInfo On -</Files> - </pre> +</Files></pre> @@ -294,11 +284,9 @@ AcceptFilter https data <p>Sunucu, <code>/usr/local/web/index.html</code> belgesini döndürmeden önce,</p> - <pre class="prettyprint lang-config"> -<Directory /> + <pre class="prettyprint lang-config"><Directory /> AllowOverride None -</Directory> - </pre> +</Directory></pre> <p>şeklinde bir yapılandırma ile iptal edilmiş olmadıkça yönergeler için @@ -616,10 +604,8 @@ AcceptFilter https data <p>Örnek:</p> - <pre class="prettyprint lang-config"> -AllowOverride None -AllowOverrideList Redirect RedirectMatch - </pre> + <pre class="prettyprint lang-config">AllowOverride None +AllowOverrideList Redirect RedirectMatch</pre> <p>Yukarıdaki örnekte sadece <code>Redirect</code> ve @@ -628,13 +614,11 @@ AllowOverrideList Redirect RedirectMatch <p>Örnek:</p> - <pre class="prettyprint lang-config"> -AllowOverride AuthConfig -AllowOverrideList CookieTracking CookieName - </pre> + <pre class="prettyprint lang-config">AllowOverride AuthConfig +AllowOverrideList CookieTracking CookieName</pre> - <p>Yukarıdaki örnekte <code class="directive"><a href="#allowoverride ">AllowOverride + <p>Yukarıdaki örnekte <code class="directive"><a href="#allowoverride">AllowOverride </a></code> yönergesi <code>AuthConfig</code> yönerge grubuna izin verirken <code class="directive">AllowOverrideList</code> yönergesi <code>FileInfo</code> yönerge grubundan yalnız iki yönergeye izin @@ -725,9 +709,7 @@ AllowOverrideList CookieTracking CookieName göreli olacaktır.</p> <p><strong>Örnek</strong></p> - <pre class="prettyprint lang-config"> -DefaultRuntimeDir scratch/ - </pre> + <pre class="prettyprint lang-config">DefaultRuntimeDir scratch/</pre> <p><code class="directive">DefaultRuntimeDir</code> için öntanımlı yer derleme @@ -799,16 +781,14 @@ için iptal edilmiştir.</td></tr> ile kullanılabilir. Değişken daima küresel olarak tanımlı olup yapılandırma bölümünü sarmalayan etki alanı ile sınırlanmaz.</p> - <pre class="prettyprint lang-config"> -<IfDefine TEST> + <pre class="prettyprint lang-config"><IfDefine TEST> Define servername test.example.com </IfDefine> <IfDefine !TEST> Define servername www.example.com Define SSL </IfDefine> -DocumentRoot /var/www/${servername}/htdocs - </pre> +DocumentRoot /var/www/${servername}/htdocs</pre> <p><code class="directive"><a href="../mod/mod_rewrite.html#rewritemap">RewriteMap</a></code> sözdizimi ile @@ -843,11 +823,9 @@ DocumentRoot /var/www/${servername}/htdocs değil, ama <code><Directory /home/*/public_html></code> eşleşecektir. Örnek:</p> - <pre class="prettyprint lang-config"> -<Directory "/usr/local/httpd/htdocs"> + <pre class="prettyprint lang-config"><Directory "/usr/local/httpd/htdocs"> Options Indexes FollowSymLinks -</Directory> - </pre> +</Directory></pre> <div class="note"> @@ -862,11 +840,9 @@ DocumentRoot /var/www/${servername}/htdocs <p><code>~</code> karakterine ek olarak <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifadeler</a> de kullanılabilir. Örnek:</p> - <pre class="prettyprint lang-config"> -<Directory ~ "^/www/[0-9]{3}"> + <pre class="prettyprint lang-config"><Directory ~ "^/www/[0-9]{3}"> -</Directory> -</pre> +</Directory></pre> <p>yönergesi <code>/www/</code> içindeki üç rakamdan oluşan dizinlerle @@ -877,15 +853,13 @@ DocumentRoot /var/www/${servername}/htdocs eşleşmedeki yönergelerden başlayarak <a href="#accessfilename">.htaccess</a> dosyalarındaki yönergelere kadar genişletilir. Örneğin,</p> - <pre class="prettyprint lang-config"> -<Directory /> + <pre class="prettyprint lang-config"><Directory /> AllowOverride None </Directory> <Directory "/home"> AllowOverride FileInfo -</Directory> - </pre> +</Directory></pre> <p>bölümleri ile <code>/home/web/dir/doc.html</code> belgesine erişirken @@ -908,11 +882,9 @@ DocumentRoot /var/www/${servername}/htdocs değerlendirilmez. Düzenli ifadelerin tamamı yapılandırma dosyasında görüldükleri sıraya göre sınanırlar. Örneğin,</p> - <pre class="prettyprint lang-config"> -<Directory ~ "abc$"> + <pre class="prettyprint lang-config"><Directory ~ "abc$"> # ... yönergeler burada ... -</Directory> - </pre> +</Directory></pre> <p>düzenli ifadeli bölümü, tüm normal <code class="directive"><Directory></code> bölümleri ve @@ -926,11 +898,9 @@ DocumentRoot /var/www/${servername}/htdocs erişime izin vermek oluşuna dikkat ediniz. Bunu şöyle bir blokla değiştirmeniz,</strong></p> - <pre class="prettyprint lang-config"> -<Directory /> + <pre class="prettyprint lang-config"><Directory /> Require all denied -</Directory> - </pre> +</Directory></pre> <p><strong>ve erişilebilir olmasını istediğiniz dizinleri ayrıca @@ -965,11 +935,9 @@ DocumentRoot /var/www/${servername}/htdocs bir yönerge grubunu sarmalamakta kullanılır. Tek farkla argüman olarak bir <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifade</a> alır. Örnek:</p> - <pre class="prettyprint lang-config"> -<DirectoryMatch "^/www/(.+/)?[0-9]{3}"> + <pre class="prettyprint lang-config"><DirectoryMatch "^/www/(.+/)?[0-9]{3}"> # ... -</DirectoryMatch> -</pre> +</DirectoryMatch></pre> <p>yönergesi <code>/www/</code> içindeki üç rakamdan oluşan dizinlerle @@ -987,6 +955,19 @@ DocumentRoot /var/www/${servername}/htdocs ifadeler dikkatli yazılmalıdır. </div> + <p>2.4.8 itibariyle, isimli gruplar ve geriye başvurular elde edilmekte + olup ilgili isim büyük harfe çevrildikren sonra "MATCH_" ile + öncelendikten sonra ortama yazılmaktadır. Böylece yol elemanlarına + <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> gibi modüllerden veya <a href="../expr.html">düzenli ifadelerden</a> başvurmak mümkün + kılınmıştır. Karışıklığı önlemek için, numaralı (isimsiz) geriye + başvurular yoksayılmaktadır. Bunların yerine isimli geriye başvurular + kullanılmalıdır.</p> + +<pre class="prettyprint lang-config"><DirectoryMatch ^/var/www/combined/(?<sitename>[^/]+)> + require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example +</DirectoryMatch></pre> + + <h3>Ayrıca bakınız:</h3> <ul> <li>Normal <code class="directive"><Directory></code> @@ -1046,14 +1027,12 @@ DocumentRoot /var/www/${servername}/htdocs <code class="directive"><ElseIf></code> bölümü uygulanmamışsa kapsadığı yönergeleri uygular. Örneğin:</p> - <pre class="prettyprint lang-config"> -<If "-z req('Host')"> + <pre class="prettyprint lang-config"><If "-z req('Host')"> # ... </If> <Else> # ... -</Else> - </pre> +</Else></pre> <p>Burada, <code class="directive"><If></code> yönergesi @@ -1091,8 +1070,7 @@ DocumentRoot /var/www/${servername}/htdocs <code class="directive"><ElseIf></code> yönergesinin uygulanmadığı takdirde uygular. Örnek:</p> - <pre class="prettyprint lang-config"> -<If "-R '10.1.0.0/16'"> + <pre class="prettyprint lang-config"><If "-R '10.1.0.0/16'"> #... </If> <ElseIf "-R '10.0.0.0/8'"> @@ -1100,8 +1078,7 @@ DocumentRoot /var/www/${servername}/htdocs </ElseIf> <Else> #... -</Else> - </pre> +</Else></pre> <p><code class="directive"><ElseIf></code> bir isteğin uzak adresi @@ -1167,11 +1144,9 @@ DocumentRoot /var/www/${servername}/htdocs <p>Bu özellik, sadece NFS dosya sistemi üzerinde sunulan dosyaları kapsamak üzere şu şekilde kolayca kapatılabilir:</p> - <pre class="prettyprint lang-config"> -<Directory "/nfs-dosyaları-yolu"> + <pre class="prettyprint lang-config"><Directory "/nfs-dosyaları-yolu"> EnableMMAP Off -</Directory> - </pre> +</Directory></pre> </div> @@ -1226,11 +1201,9 @@ DocumentRoot /var/www/${servername}/htdocs <p>Bu özellik, sadece bir ağ dosya sistemi üzerinde sunulan dosyaları kapsamak üzere şu şekilde kolayca kapatılabilir:</p> - <pre class="prettyprint lang-config"> -<Directory "/nfs-dosyaları-yolu"> + <pre class="prettyprint lang-config"><Directory "/nfs-dosyaları-yolu"> EnableSendfile Off -</Directory> - </pre> +</Directory></pre> <p><code class="directive">EnableSendfile</code> yönergesinin .htaccess ve @@ -1255,8 +1228,7 @@ DocumentRoot /var/www/${servername}/htdocs üretilmesi için kullanılabilir. Genelde kullanıldığı durum, gerekli modüllerin yapılandırmada bulunmadığının raporlanmasıdır.</p> - <pre class="prettyprint lang-config"> -# Örnek + <pre class="prettyprint lang-config"># Örnek # mod_include yüklü değilse bilelim <IfModule !include_module> Error "Hata: mod_include mod_foo için gerekiyor. LoadModule ile yükleyin." @@ -1272,8 +1244,7 @@ DocumentRoot /var/www/${servername}/htdocs <IfDefine !NOSSL> Error "Ya SSL ya da NOSSL tanımlı olmalı." </IfDefine> -</IfDefine> - </pre> +</IfDefine></pre> @@ -1314,12 +1285,10 @@ DocumentRoot /var/www/${servername}/htdocs şeklinde de belirtilebilir. Bunlar yerine, tarayıcıda gösterilmek üzere bir ileti de belirtilebilir. Örnekler:</p> - <pre class="prettyprint lang-config"> -ErrorDocument 500 http://foo.example.com/cgi-bin/tester + <pre class="prettyprint lang-config">ErrorDocument 500 http://foo.example.com/cgi-bin/tester ErrorDocument 404 /cgi-bin/bad_urls.pl ErrorDocument 401 /subscription_info.html -ErrorDocument 403 "Kusura bakmayın, bugün hizmet veremiyoruz." - </pre> +ErrorDocument 403 "Kusura bakmayın, bugün hizmet veremiyoruz."</pre> <p>Bunlardan başka, Apache httpd’nin kendi hata iletilerinin kullanılacağı @@ -1330,13 +1299,11 @@ ErrorDocument 403 "Kusura bakmayın, bugün hizmet veremiyoruz." <code>default</code> değeri açıkça belirtilerek örnekteki gibi zorlanabilir:</p> - <pre class="prettyprint lang-config"> -ErrorDocument 404 /cgi-bin/bad_urls.pl + <pre class="prettyprint lang-config">ErrorDocument 404 /cgi-bin/bad_urls.pl <Directory /web/docs> ErrorDocument 404 default -</Directory> - </pre> +</Directory></pre> <p><code class="directive">ErrorDocument</code> yönergesinde bir uzak URL (önünde @@ -1456,10 +1423,8 @@ ErrorDocument 404 /cgi-bin/bad_urls.pl hata iletisine ek olarak günlüklenecek ek bilgiyi belirtmek için kullanılabilir.</p> - <pre class="prettyprint lang-config"> -#Basit örnek -ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [client %a] %M" - </pre> + <pre class="prettyprint lang-config">#Basit örnek +ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [client %a] %M"</pre> <p>İlk değiştirge olarak <code>connection</code> veya <code>request</code> @@ -1589,10 +1554,8 @@ ErrorLogFormat "[%t] [%l] [pid %P] %F: %E: [client %a] %M" <code class="module"><a href="../mod/mod_unique_id.html">mod_unique_id</a></code> modülü yüklüyse onun eşsiz kimliği istekler için günlük kimliği olarak kullanılacaktır.</p> - <pre class="prettyprint lang-config"> -#Örnek (Evreli MPM'ler için öntanımlı biçim) -ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i" - </pre> + <pre class="prettyprint lang-config">#Örnek (Evreli MPM'ler için öntanımlı biçim) +ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i"</pre> <p>Bunun hata iletilerindeki sonuçları şöyle olabilir:</p> @@ -1604,20 +1567,16 @@ ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a] %M% <p>Dikkat edin, yukarıda açıklandığı gibi, bazı alanlar tanımlanmadıklarından tamamen yoksayılır.</p> - <pre class="prettyprint lang-config"> -#Örnek (2.2.x biçimine benzer) -ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i" - </pre> + <pre class="prettyprint lang-config">#Örnek (2.2.x biçimine benzer) +ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a] %M% ,\ referer\ %{Referer}i"</pre> - <pre class="prettyprint lang-config"> -#İstek/bağlantı günlük kimlikli gelişkin bir örnek + <pre class="prettyprint lang-config">#İstek/bağlantı günlük kimlikli gelişkin bir örnek ErrorLogFormat "[%{uc}t] [%-m:%-l] [R:%L] [C:%{C}L] %7F: %E: %M" ErrorLogFormat request "[%{uc}t] [R:%L] Request %k on C:%{c}L pid:%P tid:%T" ErrorLogFormat request "[%{uc}t] [R:%L] UA:'%+{User-Agent}i'" ErrorLogFormat request "[%{uc}t] [R:%L] Referer:'%+{Referer}i'" -ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A" - </pre> +ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A"</pre> @@ -1758,24 +1717,20 @@ ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A" imi bir karakterle eşleştirilirken <code>*</code> imi karakter dizileri ile eşleştirilir.</p> - <pre class="prettyprint lang-config"> -<Files "zat.html"> + <pre class="prettyprint lang-config"><Files "zat.html"> # zat.html dosyasına uygulanacakları buraya koy </Files> <Files "?at.*"> # Buradakiler hat.html, kat.html, tat.html ve benzerlerine uygulanır. -</Files> -</pre> +</Files></pre> <p><code>~</code> imine ek olarak <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifadeler</a> de kullanılabilir. Örneğin</p> - <pre class="prettyprint lang-config"> -<Files ~ "\.(gif|jpe?g|png)$"> + <pre class="prettyprint lang-config"><Files ~ "\.(gif|jpe?g|png)$"> #... -</Files> -</pre> +</Files></pre> <p>satırı en bilinen resim dosyası biçimleriyle eşleşecektir. Bunun @@ -1813,15 +1768,26 @@ ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A" yönergelerin etki alanını <code class="directive"><a href="#files"><Files></a></code> yönergesinin yaptığı gibi dosya isimlerine göre sınırlandırır. Ancak, argüman olarak bir <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifade</a> kabul eder. Örneğin</p> -<pre class="prettyprint lang-config"> -<FilesMatch "\.(gif|jpe?g|png)$"> +<pre class="prettyprint lang-config"><FilesMatch "\.(gif|jpe?g|png)$"> # ... -</FilesMatch> -</pre> +</FilesMatch></pre> <p>satırı en bilinen resim dosyası biçimleriyle eşleşecektir.</p> + <p>2.4.8 itibariyle, isimli gruplar ve geriye başvurular elde edilmekte + olup ilgili isim büyük harfe çevrildikren sonra "MATCH_" ile + öncelendikten sonra ortama yazılmaktadır. Böylece yol elemanlarına + <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> gibi modüllerden veya <a href="../expr.html">düzenli ifadelerden</a> başvurmak mümkün + kılınmıştır. Karışıklığı önlemek için, numaralı (isimsiz) geriye + başvurular yoksayılmaktadır. Bunların yerine isimli geriye başvurular + kullanılmalıdır.</p> + +<pre class="prettyprint lang-config"><DirectoryMatch ^/var/www/combined/(?<sitename>[^/]+)> + require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example +</DirectoryMatch></pre> + + <h3>Ayrıca bakınız:</h3> <ul> <li>Bir istek alındığında farklı yapılandırma bölümlerinin nasıl bir @@ -1862,8 +1828,7 @@ ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A" <p>Ayrıca, daha genel <code class="directive">ForceType</code> ayarlarını da <code>None</code> değeriyle geçersiz kılabilirsiniz:</p> - <pre class="prettyprint lang-config"> -# tüm dosyaların image/gif olarak sunulması için: + <pre class="prettyprint lang-config"># tüm dosyaların image/gif olarak sunulması için: <Location /images> ForceType image/gif </Location> @@ -1871,8 +1836,7 @@ ErrorLogFormat connection "[%{uc}t] [C:%{c}L] local\ %a remote\ %A" # normal MIME-türüne geri dönmek için: <Location /images/mixed> ForceType None -</Location> - </pre> +</Location></pre> <p>Bu yönerge, öncelikle dosya sisteminden sunulan duruk dosyalar için @@ -1980,6 +1944,10 @@ takdirde uygulanacak yönergeleri barındırır.</td></tr> üstünde yapılabilir. <a href="../expr.html">Apache HTTP Sunucusundaki İfadeler</a> belgesinde daha ayrıntılı bilgi bulabilirsiniz.</p> + <p>Bu yapılandırma bölümünün içinde sadece + <a href="directive-dict.html#Context">dizin bağlamını</a> destekleyen + yönergeler kullanılabilir.</p> + <h3>Ayrıca bakınız:</h3> <ul> <li><a href="../expr.html">Apache HTTP Sunucusundaki @@ -2040,8 +2008,7 @@ sokulacak yönergeleri sarmalar.</td></tr> Örnek:</p> <div class="example"><p><code>httpd -DReverseProxy -DUseCache -DMemCache ...</code></p></div> - <pre class="prettyprint lang-config"> -<IfDefine ReverseProxy> + <pre class="prettyprint lang-config"><IfDefine ReverseProxy> LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so <IfDefine UseCache> @@ -2053,8 +2020,7 @@ sokulacak yönergeleri sarmalar.</td></tr> LoadModule cache_disk_module modules/mod_cache_disk.so </IfDefine> </IfDefine> -</IfDefine> - </pre> +</IfDefine></pre> </div> @@ -2145,19 +2111,15 @@ yönergeleri sarmalar.</td></tr> <p>Örnekler:</p> - <pre class="prettyprint lang-config"> -Include /usr/local/apache2/conf/ssl.conf -Include /usr/local/apache2/conf/vhosts/*.conf - </pre> + <pre class="prettyprint lang-config">Include /usr/local/apache2/conf/ssl.conf +Include /usr/local/apache2/conf/vhosts/*.conf</pre> <p>Veya dizinler <code class="directive"><a href="#serverroot">ServerRoot</a></code> dizinine göre belirtilebilir:</p> - <pre class="prettyprint lang-config"> -Include conf/ssl.conf -Include conf/vhosts/*.conf - </pre> + <pre class="prettyprint lang-config">Include conf/ssl.conf +Include conf/vhosts/*.conf</pre> <p>Dosya kalıbı karakterleri yolun dizin ve dosya parçalarına @@ -2293,11 +2255,9 @@ sarmalar.</td></tr> <code>POST</code>, <code>PUT</code> ve <code>DELETE</code> yöntemleri için uygulanmakta, diğer tüm yöntemler korumasız bırakılmaktadır:</p> - <pre class="prettyprint lang-config"> -<Limit POST PUT DELETE> + <pre class="prettyprint lang-config"><Limit POST PUT DELETE> Require valid-user -</Limit> - </pre> +</Limit></pre> <p>Birden fazla bölümde kullanılabilecek yöntem isimleri: <code>GET</code>, @@ -2330,14 +2290,12 @@ sarmalar.</td></tr> <code>POST</code> istekleri için yetkilendirilecek ve tüm durumlarda <code>Require group editors</code> yönergesi yoksayılacaktır:</p> - <pre class="prettyprint lang-config"> -<LimitExcept GET> + <pre class="prettyprint lang-config"><LimitExcept GET> Require valid-user </LimitExcept> <Limit POST> Require group editors -</Limit> - </pre> +</Limit></pre> @@ -2363,11 +2321,9 @@ kullanılacak erişim sınırlayıcıları sarmalar.</td></tr> <p>Örnek:</p> - <pre class="prettyprint lang-config"> -<LimitExcept POST GET> + <pre class="prettyprint lang-config"><LimitExcept POST GET> Require valid-user -</LimitExcept> - </pre> +</LimitExcept></pre> @@ -2655,11 +2611,9 @@ sınırlar.</td></tr> uygulanacaktır, fakat <code>/private1other</code> isteğine uygulanmayacaktır.</p> - <pre class="prettyprint lang-config"> -<Location /private1> + <pre class="prettyprint lang-config"><Location /private1> # ... -</Location> - </pre> +</Location></pre> <p>Aşağıdaki örnekte yer belirtimi bir bölü çizgisi ile bitirilmiştir. @@ -2667,11 +2621,9 @@ sınırlar.</td></tr> için sarmalanan yönergeler uygulanacaktır, fakat <code>/private2</code> ve <code>/private2other</code> isteklerine uygulanmayacaktır.</p> - <pre class="prettyprint lang-config"> -<Location /private2<em>/</em>> + <pre class="prettyprint lang-config"><Location /private2<em>/</em>> # ... -</Location> - </pre> +</Location></pre> <div class="note"><h3><code class="directive"><Location></code> ne zaman @@ -2700,11 +2652,9 @@ sınırlar.</td></tr> <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifadeler</a> de kullanılabilir. Örneğin,</p> - <pre class="prettyprint lang-config"> -<Location ~ "/(ek|hususi)/veri"> + <pre class="prettyprint lang-config"><Location ~ "/(ek|hususi)/veri"> #... -</Location> -</pre> +</Location></pre> <p>yönergesi <code>/ek/veri</code> ve <code>/hususi/veri</code> alt @@ -2718,12 +2668,10 @@ sınırlar.</td></tr> <code>example.com</code>’dan gelen isteklere izin vermek için şöyle bir uygulama yapabilirsiniz:</p> - <pre class="prettyprint lang-config"> -<Location /status> + <pre class="prettyprint lang-config"><Location /status> SetHandler server-status Require host example.com -</Location> - </pre> +</Location></pre> <div class="note"><h3>/ (bölü çizgisi) hakkında</h3> @@ -2769,16 +2717,27 @@ uygulanır.</td></tr> yönergelerin etki alanını <code class="directive"><a href="#location"><Location></a></code> yönergesinin yaptığı gibi belirtilen URL’lerle sınırlar. Ancak argüman olarak basit bir dizge değil bir <a class="glossarylink" href="../glossary.html#regex" title="sözlüğe bakınız">düzenli ifade</a> alır. Örneğin,</p> - <pre class="prettyprint lang-config"> -<LocationMatch "/(ek|hususi)/veri"> + <pre class="prettyprint lang-config"><LocationMatch "/(ek|hususi)/veri"> # ... -</LocationMatch> -</pre> +</LocationMatch></pre> <p>yönergesi <code>/ek/veri</code> ve <code>/hususi/veri</code> alt dizgeleriyle eşleşecektir.</p> + <p>2.4.8 itibariyle, isimli gruplar ve geriye başvurular elde edilmekte + olup ilgili isim büyük harfe çevrildikren sonra "MATCH_" ile + öncelendikten sonra ortama yazılmaktadır. Böylece yol elemanlarına + <code class="module"><a href="../mod/mod_rewrite.html">mod_rewrite</a></code> gibi modüllerden veya <a href="../expr.html">düzenli ifadelerden</a> başvurmak mümkün + kılınmıştır. Karışıklığı önlemek için, numaralı (isimsiz) geriye + başvurular yoksayılmaktadır. Bunların yerine isimli geriye başvurular + kullanılmalıdır.</p> + +<pre class="prettyprint lang-config"><DirectoryMatch ^/var/www/combined/(?<sitename>[^/]+)> + require ldap-group cn=%{env:MATCH_SITENAME},ou=combined,o=Example +</DirectoryMatch></pre> + + <h3>Ayrıca bakınız:</h3> <ul> <li>Bir istek alındığında farklı yapılandırma bölümlerinin nasıl bir @@ -2949,21 +2908,17 @@ uygulanır.</td></tr> <code>_module</code> sonekli modül ismi belirtmek mümkündür. Yani, aşağıdaki üç belirtim eşdeğerdedir:</p> - <pre class="prettyprint lang-config"> -LogLevel info ssl:warn + <pre class="prettyprint lang-config">LogLevel info ssl:warn LogLevel info mod_ssl.c:warn -LogLevel info ssl_module:warn - </pre> +LogLevel info ssl_module:warn</pre> <p>Ayrıca seviyeyi dizin bağlamında değiştirmek de mümkündür:</p> - <pre class="prettyprint lang-config"> -LogLevel info + <pre class="prettyprint lang-config">LogLevel info <Directory "/usr/local/apache/htdocs/app"> LogLevel debug -</Directory> - </pre> +</Directory></pre> <div class="note">Dizin bağlamında günük seviyesi yapılandırması sadece istek @@ -3321,10 +3276,8 @@ LogLevel info öntanımlı mekanizması ise <code>sysvsem</code> ile değiştirilmektedir.</p> - <pre class="prettyprint lang-config"> -Mutex sysvsem default -Mutex fcntl:/var/httpd/locks mpm-accept - </pre> + <pre class="prettyprint lang-config">Mutex sysvsem default +Mutex fcntl:/var/httpd/locks mpm-accept</pre> </div> @@ -3441,15 +3394,13 @@ Mutex fcntl:/var/httpd/locks mpm-accept <p>Örneğin, <code>+</code> ve <code>-</code> imleri olmaksızın,</p> - <pre class="prettyprint lang-config"> -<Directory "/web/docs"> + <pre class="prettyprint lang-config"><Directory "/web/docs"> Options Indexes FollowSymLinks </Directory> <Directory "/web/docs/spec"> Options Includes -</Directory> - </pre> +</Directory></pre> <p>yapılandırmasıyla <code>/web/docs/spec</code> dizininde sadece @@ -3457,15 +3408,13 @@ Mutex fcntl:/var/httpd/locks mpm-accept <code class="directive">Options</code> yönergesinde <code>+</code> ve <code>-</code> imleri kullanılırsa,</p> - <pre class="prettyprint lang-config"> -<Directory "/web/docs"> + <pre class="prettyprint lang-config"><Directory "/web/docs"> Options Indexes FollowSymLinks </Directory> <Directory "/web/docs/spec"> Options +Includes -Indexes -</Directory> - </pre> +</Directory></pre> <p>yapılandırmasıyla <code>/web/docs/spec</code> dizininde @@ -3776,15 +3725,13 @@ kullanılacak konak adları için başka isimler belirtebilmeyi sağlar. belirtebilmeyi sağlar. <code class="directive">ServerAlias</code> dosya adı kalıp karakterleri içerebilir.</p> - <pre class="prettyprint lang-config"> -<VirtualHost *:80> + <pre class="prettyprint lang-config"><VirtualHost *:80> ServerName server.example.com ServerAlias server server2.example.com server2 ServerAlias *.example.com UseCanonicalName Off # ... -</VirtualHost> - </pre> +</VirtualHost></pre> <p>İsme dayalı sanal konaklardan en iyi eşleşme kümesinde olanlar @@ -4057,21 +4004,17 @@ sebep olur.</td></tr> yapıldığında sunucunun bir durum bilgisi göstermesi için <code>httpd.conf</code> dosyasına şöyle bir satır koyabilirsiniz:</p> - <pre class="prettyprint lang-config"> -<Location "/status"> + <pre class="prettyprint lang-config"><Location "/status"> SetHandler server-status -</Location> - </pre> +</Location></pre> <p>Bu yönergeyi ayrıca, belli bir dosya uzantısına sahip dosyalara uygun bir eylemci atamak için de kullanabilirsiniz. örnek:</p> - <pre class="prettyprint lang-config"> -<FilesMatch \.php$> + <pre class="prettyprint lang-config"><FilesMatch \.php$> SetHandler application/x-httpd-php -</FilesMatch> - </pre> +</FilesMatch></pre> <p>Evvelce tanımlanmış bir <code class="directive">SetHandler</code> yönergesini @@ -4132,11 +4075,9 @@ belirler.</td></tr> <p>Örneğin, aşağıdaki yapılandırma ile <code>/www/data/</code> dizinindeki bütün dosyalar sunucu taraflı içerik kapsamında ele alınacaktır.</p> - <pre class="prettyprint lang-config"> -<Directory "/www/data/"> + <pre class="prettyprint lang-config"><Directory "/www/data/"> SetOutputFilter INCLUDES -</Directory> - </pre> +</Directory></pre> <p>Birden fazla süzgeç belirtilmek istenirse birbirlerinden noktalı @@ -4387,15 +4328,13 @@ gerçekleşmesi için sunucunun geçmesini bekleyeceği süre.</td></tr> dizgesi.</li> </ul> - <pre class="prettyprint lang-config"> -<VirtualHost 10.1.2.3:80> + <pre class="prettyprint lang-config"><VirtualHost 10.1.2.3:80> ServerAdmin webmaster@host.example.com DocumentRoot /www/docs/host.example.com ServerName host.example.com ErrorLog logs/host.example.com-error_log TransferLog logs/host.example.com-access_log -</VirtualHost> - </pre> +</VirtualHost></pre> @@ -4403,15 +4342,13 @@ gerçekleşmesi için sunucunun geçmesini bekleyeceği süre.</td></tr> adresleri köşeli ayraç içine alınır. IPv6 adresi kullanılan bir örnek:</p> - <pre class="prettyprint lang-config"> -<VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80> + <pre class="prettyprint lang-config"><VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80> ServerAdmin webmaster@host.example.com DocumentRoot /www/docs/host.example.com ServerName host.example.com ErrorLog logs/host.example.com-error_log TransferLog logs/host.example.com-access_log -</VirtualHost> - </pre> +</VirtualHost></pre> <p>Her sanal konağın ya farklı bir IP adresi ve port ile ya da farklı bir @@ -4491,7 +4428,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/core.html'; } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br /><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> altında lisanslıdır.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br /><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> altında lisanslıdır.</p> <p class="menu"><a href="../mod/">Modüller</a> | <a href="../mod/directives.html">Yönergeler</a> | <a href="http://wiki.apache.org/httpd/FAQ">SSS</a> | <a href="../glossary.html">Terimler</a> | <a href="../sitemap.html">Site Haritası</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |