52AV璈A|52AV.ONE

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

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-10-3 10:29:29 | 芰閰脖 撣 |摨閬 |梯璅∪
啣  <Linux CENTOS 6 + Apache + mysql>
寞銝
1. vi /etc/httpd/httpd.conf, i0 [. W' H. s' B; B
2. 曉 # VirtualHost example:
$ A5 I. m: o' w0 {- b$ x
  1. 嗡乩virtual server 閮剖,靘憒:- M" [8 o! T, \  J( s' @
  2. #2014/10/02 add, B5 x! U5 r6 ^
  3. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫
    / J7 a. b' |4 M( p
  4.     ServerAdmin root@av4u.com
    $ M" g' V. E) ~, ^
  5.     DocumentRoot /home/coav4u/public_html
    / D5 M; P: {* z7 I: ~# b
  6.     ServerName av4u.co* U! o5 k0 l$ a9 N6 g# S. w
  7.     ErrorLog logs/www.av4u.co-error_log
    6 c+ X" k% |6 p
  8.     CustomLog logs/www.av4u.co-access_log common. z. d' f9 V$ f; S
  9. </VirtualHost>
    8 w' k5 U, M6 `- O' N+ N+ Z
  10. <VirtualHost 192.168.1.12:80>* h8 A$ \6 r! n- }+ A& \$ M& Q& k
  11.     ServerAdmin root@av4u.com4 Z8 P) r- o3 f6 D5 x$ S
  12.     DocumentRoot /home/coav4u/public_html
    0 Z- R7 O1 x5 d; o2 [
  13.     ServerName www.av4u.co
    7 ^4 U3 ]1 |) X' P* R) `
  14.     ErrorLog logs/www.av4u.co-error_log
    : o4 b4 e. N5 z$ f
  15.     CustomLog logs/www.av4u.co-access_log common1 N( \6 Q7 B3 m3 ?
  16. </VirtualHost>
銴鋆賭誨蝣
    臬摰2 Domain
name (av4u.comwww.av4u.com)啣銝祉征,典隡潔瘥 nginx 閮剖蝔敺桅獄拐暺
8 b8 u' l, t) i0 G; m3. Apache
9 K+ w! o' \0 T* U$ J7 X& }6 A    service httpd restart #隞叵oot頨怠   --->摰; x0 H, r9 w: [! Z
   閮: service httpd start  #        

6 Y& c: P/ }6 Z2 r        service httpd start  #甇. W5 @8 s. i1 u9 G7 e8 L( y, d6 P
寞鈭
" i5 m- I( E1 y( q& J/etc/httpd/conf.d/匐撱箔函瑼(閮剖銝virtual host)
/ M7 U# ~  U: u! ?0 _靘憒: 3 A" K! L% U& i3 L8 I
virtual1.conf
* Z# V" c7 ]! r  {- U) S
  1. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫
    8 G9 D+ H/ L0 `  I( [5 G& z" Y3 V
  2.     ServerAdmin root@av4u.com
    1 u1 w9 [3 _# n: ^! h
  3.     DocumentRoot /home/coav4u/public_html
    ( E) z; z9 S2 x
  4.     ServerName av4u.co% l) e# d; o2 k0 ?) o9 Z( h: |
  5.     ErrorLog logs/www.av4u.co-error_log
    ( X, @* J- J, n: E& k# @
  6.     CustomLog logs/www.av4u.co-access_log common2 k( Y# @5 ?3 Q! i* ~
  7. </VirtualHost>
銴鋆賭誨蝣
virtual2.conf
* t: C6 D9 H! j7 ]7 c! A% t
  1. <VirtualHost 192.168.1.12:80>
    . a0 ~, x$ k( x% }  c5 D3 e. q& V4 f# U
  2.     ServerAdmin root@av4u.com
    + N+ E# X4 H, ?
  3.     DocumentRoot /home/coav4u/public_html% ~6 r! u0 ~% I- M1 o
  4.     ServerName www.av4u.co
    0 N* i3 M/ e7 u4 s
  5.     ErrorLog logs/www.av4u.co-error_log
    8 s* P  m7 N! f: c' Y
  6.     CustomLog logs/www.av4u.co-access_log common, p' z4 x! ~+ F4 p' Z/ C& Q1 U5 h
  7. </VirtualHost>
銴鋆賭誨蝣
摮瑼嗅 httpd
9 B' K* R. `$ A; w7 @
雿臬箇 error:8 n! y: ~) x5 y+ S' Y' W
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
$ U+ T$ i( `$ K  @SOL:( [% K" j3 S) @8 ~" i7 k% U3 ?& {
望 /etc/httpd/conf/httpd.conf NameVirtualHost *:80 virtual1.confvirtual2.conf 折質身摰 <VirtualHost 192.168.1.12:80> 銝寥,甇蝣箇閮剖:
7 s- Q& U. ]& V: _httpd.conf virtual1.confvirtual2.conf(砌蜓璈閮剖瑼)銝舫賜 *:80 撠望舫賜 192.168.1.12:80
: ?) F5 k' z4 p% L  Jhttpd.conf ===> NameVirtualHost *:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost *:80>  
( {/ _, A3 E' G7 d0 chttpd.conf ===> NameVirtualHost 192.168.1.12:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost 192.168.1.12:80>
9 e. ]; y! ^' K8 y; z- w3 b. z
9 w, g0 d) Y, B3 z# m% E- c7 P

! t1 X) g9 s6 I# A. Z
5 K* l' N! |: D; }5 B( T

雿輻券

祉蝛閬

BT蝳

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

QQ|撠暺撅||52AV璈A

GMT+8, 2024-6-16 16:35 , Processed in 0.074555 second(s), 16 queries .

蝯∠.撱

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

鋆貉憒 敹恍敺 餈銵