เปิดรับสมัครสมาชิก webboard ตามปกติแล้วครับ

ผู้เขียน หัวข้อ: How to Reverse Proxy ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12  (อ่าน 7469 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ Admin!

  • อยู่ใต้ฟ้าอย่าท้าฝน เกิดเป็นคนอย่าท้ากรรม !
  • admin
  • ********
  • กระทู้: 4182
  • Reputation: 101
  • เพศ: ชาย
  • สัจจะคือคำขาด
    • http://www.siamcafe.net
How to Reverse Proxy ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« เมื่อ: เมษายน 03, 2007, 05:37:39 am »


ทดสอบระบบ Reverse Proxy เอา Squid มาช่วยในส่วน ของ Web Server


เปิดเวป www.siamcafe.net โดยอาศัย proxy หรือเรียกว่า ผ่าน Squid2.6Stable9 ใช้ Proxy ให้เป็นประโยชน์เอามาเก็บ cache เวปตัวเองเรียกเองออกเองแจ่มไปเลย
เร็วขึ้นหรือเปล่าช่วยบอกด้วยนะคร้าบผม

spamm7

  • บุคคลทั่วไป
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #1 เมื่อ: เมษายน 03, 2007, 10:04:05 am »
อืมมม เดี๋ยวลองไปงมดู... ๛emoticon294:

ออฟไลน์ Admin!

  • อยู่ใต้ฟ้าอย่าท้าฝน เกิดเป็นคนอย่าท้ากรรม !
  • admin
  • ********
  • กระทู้: 4182
  • Reputation: 101
  • เพศ: ชาย
  • สัจจะคือคำขาด
    • http://www.siamcafe.net
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #2 เมื่อ: เมษายน 03, 2007, 11:13:28 am »
อืมมม เดี๋ยวลองไปงมดู... ๛emoticon294:

ไม่ต้องงม คู่มืออยู่นี่
http://www.faqs.org/docs/securing/chap28sec231.html

ลองดูแล้วจะรู้ว่าเร็วววววววววววววววสุดๆๆๆๆๆๆๆๆๆๆอย่างไร

ออฟไลน์ Admin!

  • อยู่ใต้ฟ้าอย่าท้าฝน เกิดเป็นคนอย่าท้ากรรม !
  • admin
  • ********
  • กระทู้: 4182
  • Reputation: 101
  • เพศ: ชาย
  • สัจจะคือคำขาด
    • http://www.siamcafe.net
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #3 เมื่อ: เมษายน 03, 2007, 02:04:25 pm »
test2  8)  ๛sc  ๛sc ๛sc

ออฟไลน์ Admin!

  • อยู่ใต้ฟ้าอย่าท้าฝน เกิดเป็นคนอย่าท้ากรรม !
  • admin
  • ********
  • กระทู้: 4182
  • Reputation: 101
  • เพศ: ชาย
  • สัจจะคือคำขาด
    • http://www.siamcafe.net
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #4 เมื่อ: เมษายน 03, 2007, 02:09:18 pm »
สำหรับ admin ท่านใด ที่เวปมีจำนวนคนเข้าเยอะๆลอง ดูนะครับ ใช้ Squid มาช่วยในส่วน ของ WebServer ลด รีซอส cpu ไปได้ 30-40 % เลยทีเดียว

ตัวอย่าง Squid.conf สำหรับ( webserver ) 
                 http_port 8080
                 icp_port 0
                 acl QUERY urlpath_regex cgi-bin \?
                 no_cache deny QUERY
                 cache_mem 16 MB
                 cache_dir ufs /cache 200 16 256
                 emulate_httpd_log on
                 redirect_rewrites_host_header off
                 replacement_policy GDSF
                 acl all src 0.0.0.0/0.0.0.0
                 http_access allow all
                 cache_mgr [email protected]
                 cache_effective_user squid
                 cache_effective_group squid
                 httpd_accel_host 208.164.186.3
                 httpd_accel_port 80
                 log_icp_queries off
                 cachemgr_passwd my-secret
 
จากนั้นก็ให้ใช้ Iptables เอานะครับ

ตัวอย่าง
iptables -t nat -A PREROUTING -p tcp -m tcp -d 127.0.0.1/32 --dport 8080-j DROP
iptables -t nat -A PREROUTING -p tcp -m tcp -d 127.0.0.1/32 --dport 80 -j REDIRECT --to-ports 8080


จากนั้นก็save ค่าด้วยคำสั่ง
service iptables save

ลองดูกระฉูดหูรูดเลยครับเปิดเวปด้วย Squid



Multi-level Web Caching
The second method of proxy cache is the so-called Multi-level Web Caching where you choose to share and cooperate with more proxy-cache servers on the Internet. With this method, your organization uses the cache of many others proxy cache servers, and to compensate, the other cache server can use yours. It's important to note that in this situation, the proxy cache can play two different roles in the hierarchy. It can be configured to be a sibling cache, and be able to only serve documents it already has, or it can be configured as a parent cache, and be able to get documents from another cache or from the source directly.





jasda2003

  • บุคคลทั่วไป
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #5 เมื่อ: เมษายน 03, 2007, 02:16:13 pm »
ลื่น หัวแตกเลย ครับ ท่าน  :c_laugh:

ระบบ FTP ยังใช้ไม่ได้นะครับ

jasda2003

  • บุคคลทั่วไป
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #6 เมื่อ: เมษายน 03, 2007, 02:45:14 pm »
หุหุ มาย่ำอีกที่ครับ ว่า ลื่นจริงๆ ปรี๊ดด....... เลย  :-*

โลโก้ siamcafe  .swf ไม่แสดงครับ

ออฟไลน์ Admin!

  • อยู่ใต้ฟ้าอย่าท้าฝน เกิดเป็นคนอย่าท้ากรรม !
  • admin
  • ********
  • กระทู้: 4182
  • Reputation: 101
  • เพศ: ชาย
  • สัจจะคือคำขาด
    • http://www.siamcafe.net
Re: ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #7 เมื่อ: เมษายน 03, 2007, 03:22:56 pm »
หุหุ มาย่ำอีกที่ครับ ว่า ลื่นจริงๆ ปรี๊ดด....... เลย  :-*

โลโก้ siamcafe  .swf ไม่แสดงครับ

มายังครับของผมมานะ 
มะมีตังค์ซื้อ Control Panel โ-คร ลำบากเลยจะทำอะไรแต่หละทีโอ้ย.. :'( ใครบริจาคซื้อ Control Panel ให้ผม จักเป็นพระคุณยิ่ง ขอ  directadmin ก็ได้นะแหะๆ )

ตอนนี้ก็สุดๆไม่มีอะไรให้โมแล้ว คงจบแต่เพียงแค่นี้ขืนโมมากกว่านี้ คงพังแน่ๆ  8)

kkd370579

  • บุคคลทั่วไป
Re: How to Reverse Proxy ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #8 เมื่อ: เมษายน 03, 2007, 07:12:33 pm »
โอ๊ยย ปวดหัว ลื่นหัวแตกอีกแล้วววว  :)

ออฟไลน์ neoboyd

  • ปี 1 เทอม 2
  • ***
  • กระทู้: 17
  • Reputation: 0
Re: How to Reverse Proxy ทดสอบระบบ Reverse Proxy BY Squid 2.6 Stable 12
« ตอบกลับ #9 เมื่อ: สิงหาคม 28, 2010, 05:24:53 am »
ขอยคุณ
Signature cleanned by Admin