Category: Apache

ป้องกัน: Apache Case-insensitive Linux

comments ใส่รหัสผ่านของคุณเพื่อดูความเห็น
By , 16 กุมภาพันธ์ 2012 14:09

เรื่องนี้มีรหัสผ่านป้องกัน เพื่อจะดูเรื่องนี้คุณต้องใส่รหัสผ่านด้านล่าง:


htaccess Redirecting non-www to www

By , 26 มกราคม 2012 17:47

ทำการ redirect จากไม่มี www ข้างหน้าให้เป็น www.sudej.com


<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{HTTP_HOST} ^sudej.com
 RewriteRule (.*) http://www.sudej.com/$1 [R=301,L]
 </IfModule>

mod rewrite sub directory & not redirect

By , 30 กันยายน 2011 15:24
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdir
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) page.pl?variable=$1 [L]
</IfModule>

Apache Mod Rewrite [Flags]

By , 30 กันยายน 2011 15:06
  1. chain|C‘ (chained with next rule)
  2. cookie|CO=NAME:VAL:domain[:lifetime[:path]]’ (set cookie)
  3. env|E=VAR:VAL‘ (set environment variable)
  4. forbidden|F‘ (force URL to be forbidden)
  5. gone|G‘ (force URL to be gone)
  6. last|L‘ (last rule)
  7. next|N‘ (next round)
  8. nocase|NC‘ (ncase)
  9. noescape|NE‘ (no URI escaping of output)
  10. nosubreq|NS‘ ( not for internal sub-requests)
  11. proxy|P‘ (force proxy)
  12. passthrough|PT‘ (pass through to next handler)
  13. qsappend|QSA‘ (query string append)
  14. redirect|R [=code]‘ (force redirect)
  15. skip|S=num‘ (skip next rule(s))
  16. type|T=MIME-type‘ (force MIME type)

การทำ vhost โดยใช้ appserv

By , 29 กรกฎาคม 2011 00:17

วันนี้จะมาสอนการทำ vhost หรือ virtual hosts  น่ะครับ

ก่อนอื่นเลย ต้อง ลง Apache , PHP+ MySQL + phpMyAdmin ก่อนเพื่อให้มันทำงานได้ แต่ผมแนะนำให้ใช้ Appserv ครับ

ง่ายดีไม่ต้องไป config อะไรให้มันยุ่งยาก next ๆ ok ๆ yes ๆ ไปก็จบล่ะ

ติดตั้งได้ง่ายครับมีวิธีให้ครับ Appserv

… อ่านต่อ … 'การทำ vhost โดยใช้ appserv'»

Panorama Theme by Themocracy