52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
Yahoo!憟拇撠
望: 璈A
Google憟拇撠
望: 璈A
     
亦: 4736|敺: 0
銝銝銝駁 銝銝銝駁

[蝬脤隡箸沘 Apache 憒雿閮剖憭砌撩(Virtual Server)

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-10-3 10:29:29 | 芰閰脖 撣 |摨閬 |梯璅∪
啣  <Linux CENTOS 6 + Apache + mysql>
寞銝
1. vi /etc/httpd/httpd.conf
7 ]* [9 \( t5 X( Y2. 曉 # VirtualHost example:% P. B3 y- q; t& l) x8 P
  1. 嗡乩virtual server 閮剖,靘憒:
    8 ~! b6 D5 |9 h$ h( i/ s
  2. #2014/10/02 add
    . |2 G3 r) C6 X' X/ |2 {
  3. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫
    ( s+ r: K' \, C7 `& ]+ N! }0 g" ]$ S
  4.     ServerAdmin root@av4u.com
    2 f# L- m6 |* f4 }' r% G
  5.     DocumentRoot /home/coav4u/public_html8 j% t6 `. u. a4 I4 v
  6.     ServerName av4u.co
    ! ?2 M. A$ t/ [6 E8 T
  7.     ErrorLog logs/www.av4u.co-error_log
    : A+ ^8 ?: J  l* u1 z2 i
  8.     CustomLog logs/www.av4u.co-access_log common
    6 e1 ~! G% r0 {3 ?2 f8 n
  9. </VirtualHost>2 ?/ F' l' U9 |: A( S; m. p
  10. <VirtualHost 192.168.1.12:80>( V! M1 h6 R: `/ B
  11.     ServerAdmin root@av4u.com
    " X$ w( a( r& a$ d& ]4 ~2 M& E
  12.     DocumentRoot /home/coav4u/public_html
    3 I' d9 ^/ t1 [! a- _2 V* Q
  13.     ServerName www.av4u.co
    ! g$ c3 r8 W" i5 n$ x. r
  14.     ErrorLog logs/www.av4u.co-error_log
    7 C) Q! H- u, j" W7 c4 t5 r
  15.     CustomLog logs/www.av4u.co-access_log common0 a9 o& l# s2 M3 X$ S$ A
  16. </VirtualHost>
銴鋆賭誨蝣
    臬摰2 Domain
name (av4u.comwww.av4u.com)啣銝祉征,典隡潔瘥 nginx 閮剖蝔敺桅獄拐暺
- {5 E5 @# [5 u  m( n3. Apache . w- T4 J* e1 f5 P4 j
    service httpd restart #隞叵oot頨怠   --->摰
; V( }7 g3 Z4 ]" Z; k   閮: service httpd start  #        
# b' }- b# k$ T3 S( j8 S- a
        service httpd start  #甇' _. ~/ h- f. z- u0 R8 N
寞鈭2 B) z9 q0 S/ P* g4 g
/etc/httpd/conf.d/匐撱箔函瑼(閮剖銝virtual host): u  U0 Q; B6 @+ P+ ^
靘憒: ) T0 P/ j! q/ P$ q/ l% d" j
virtual1.conf6 G% q0 o' V8 S4 [8 r/ L
  1. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫1 Y9 Z! _- J2 p2 L3 S4 j
  2.     ServerAdmin root@av4u.com+ f; o1 M+ }# C; j! ~! o
  3.     DocumentRoot /home/coav4u/public_html
    . ~( p/ Z; P  U5 {
  4.     ServerName av4u.co
    & c" r2 T1 v) q+ U3 ?
  5.     ErrorLog logs/www.av4u.co-error_log& l4 x  h$ I/ g$ B& q" L! a5 C
  6.     CustomLog logs/www.av4u.co-access_log common
    ' P2 t2 j% C% i" A* z2 E3 s
  7. </VirtualHost>
銴鋆賭誨蝣
virtual2.conf
  C- k; \+ P  [
  1. <VirtualHost 192.168.1.12:80>
    ) K- q6 C9 V8 ]0 D, Y- j- `0 _. q
  2.     ServerAdmin root@av4u.com5 q- [( |" x: U
  3.     DocumentRoot /home/coav4u/public_html
    , ]" L/ A" Q+ c
  4.     ServerName www.av4u.co8 ]/ K- h4 ^9 Y) J! m8 a8 i9 c
  5.     ErrorLog logs/www.av4u.co-error_log
    3 N* ?+ [+ S. N& v- d( `
  6.     CustomLog logs/www.av4u.co-access_log common
    + n6 D3 J5 ?: W- u1 U+ t$ Z, s
  7. </VirtualHost>
銴鋆賭誨蝣
摮瑼嗅 httpd
/ i$ ?9 y0 M  A, G6 T+ m# K
雿臬箇 error:
* w3 |1 t. {& P& w* f [warn] _default_ VirtualHost overlap on port 80, the first has precedence
0 ]( I# E3 h3 [) q( DSOL:* \0 _& L" ^: k
望 /etc/httpd/conf/httpd.conf NameVirtualHost *:80 virtual1.confvirtual2.conf 折質身摰 <VirtualHost 192.168.1.12:80> 銝寥,甇蝣箇閮剖:
) H& q$ Z6 `5 R" J! I, O: Shttpd.conf virtual1.confvirtual2.conf(砌蜓璈閮剖瑼)銝舫賜 *:80 撠望舫賜 192.168.1.12:80 * F  z7 g9 A# ^( i  q$ c
httpd.conf ===> NameVirtualHost *:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost *:80>  
* W" b4 a7 A5 X. a' Chttpd.conf ===> NameVirtualHost 192.168.1.12:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost 192.168.1.12:80>
& G; Y9 j. k2 m; m2 d

; f* v! u4 a8 o( A! g
" {* a) b( U0 [6 y$ K5 g

9 j& _) t1 W; E! E7 h1 W" |- e) S

雿輻券

祉蝛閬

BT蝳

砍憛批捆靘餉衣雯頝臬批捆蝝颲行粹嗥蝬脩嚗摰撟湔遛嚗嚗甇脖誑銝嗅啣摰嗆摰撟湧翩鈭箏ㄚ孵舫脣伐銝憿亙祉璇甈橘芣遛18甇 雓蝯脣亦閬賬粹脩芣遛18甇脖芣撟渡雯閬賜雯頝臭嗥批捆鞈閮嚗撱箄降典舫脰蝬脰楝批捆蝝蝯蝜ICRA蝝摰鋆閮剖 (粹蝯行霅 祉蝬脣銝蝝瘛函隢憯啣嚗祉閮剜蝞∠)

QQ|撠暺撅||52AV璈A

GMT+8, 2024-12-22 16:49 , Processed in 0.064593 second(s), 16 queries .

蝯∠.撱

52avtv@gmail.com | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵