52AV璈A|52AV.ONE

 曉撖蝣
 蝡唾酉
敹急瑕
  • av隢憯BBS
  • 璈A
  • 芣瑟憭瘚
  • 鞎澆
  • 52av鋆貉摰
  • 銝剜-銝剖銝餅
  • 伐AI璁函移瘛怠伐
     
亦: 5509|敺: 0
銝銝銝駁 銝銝銝駁

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

[銴鋆賡包
頝唾唳摰璅撅
璅銝
潸” 2014-10-3 10:29:29 | 芰閰脖 撣 |摨閬 |梯璅∪
啣  <Linux CENTOS 6 + Apache + mysql>
寞銝
1. vi /etc/httpd/httpd.conf
8 A- m! O& Z8 a0 O5 M( t0 Y3 g2. 曉 # VirtualHost example:
  1. 嗡乩virtual server 閮剖,靘憒:
  2. #2014/10/02 add
  3. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫
  4.     ServerAdmin [email protected]
  5.     DocumentRoot /home/coav4u/public_html
  6.     ServerName av4u.co
  7.     ErrorLog logs/www.av4u.co-error_log
  8.     CustomLog logs/www.av4u.co-access_log common
  9. </VirtualHost>
  10. <VirtualHost 192.168.1.12:80>
  11.     ServerAdmin [email protected]
  12.     DocumentRoot /home/coav4u/public_html
  13.     ServerName www.av4u.co
  14.     ErrorLog logs/www.av4u.co-error_log
  15.     CustomLog logs/www.av4u.co-access_log common
  16. </VirtualHost>
銴鋆賭誨蝣
    臬摰2 Domain
name (av4u.comwww.av4u.com)啣銝祉征,典隡潔瘥 nginx 閮剖蝔敺桅獄拐暺
7 M' c+ O( m/ `' K. m3. Apache 9 a! {& W& g. p+ n9 @
    service httpd restart #隞叵oot頨怠   --->摰
# k8 t0 o6 C9 L" }7 e   閮: service httpd start  #        

2 y! l+ V3 w7 V2 u' @5 P3 N" t- q+ K; \        service httpd start  #甇4 v& Z8 S$ |. W: W* l/ _1 D
寞鈭
, B& p' D3 N2 `4 S3 h" `) o/etc/httpd/conf.d/匐撱箔函瑼(閮剖銝virtual host)
1 J4 E9 r/ m. q6 }. ?! ?靘憒: 8 D* ]' ~, ^  f
virtual1.conf' f5 c; }0 t: j9 e  W6 k
  1. <VirtualHost 192.168.1.12:80>  # <VirtualHost 127.0.0.1:80>  #蝚西箄酉閫
  2.     ServerAdmin [email protected]
  3.     DocumentRoot /home/coav4u/public_html
  4.     ServerName av4u.co
  5.     ErrorLog logs/www.av4u.co-error_log
  6.     CustomLog logs/www.av4u.co-access_log common
  7. </VirtualHost>
銴鋆賭誨蝣
virtual2.conf

" K. A7 {( q5 d6 _3 @* l* i* h
  1. <VirtualHost 192.168.1.12:80>
  2.     ServerAdmin [email protected]
  3.     DocumentRoot /home/coav4u/public_html
  4.     ServerName www.av4u.co
  5.     ErrorLog logs/www.av4u.co-error_log
  6.     CustomLog logs/www.av4u.co-access_log common
  7. </VirtualHost>
銴鋆賭誨蝣
摮瑼嗅 httpd
: \/ \% N- L- Y& Z
雿臬箇 error:* p$ s( A: x2 B1 A
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
7 s9 V& D% R' k& _- X# w- MSOL:/ {* _3 v! N5 J$ l4 D! u3 G
望 /etc/httpd/conf/httpd.conf NameVirtualHost *:80 virtual1.confvirtual2.conf 折質身摰 <VirtualHost 192.168.1.12:80> 銝寥,甇蝣箇閮剖:" I; e' B, I( K) W; U
httpd.conf virtual1.confvirtual2.conf(砌蜓璈閮剖瑼)銝舫賜 *:80 撠望舫賜 192.168.1.12:80 # N2 K4 ]3 b; Q5 a8 M& ^
httpd.conf ===> NameVirtualHost *:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost *:80>   : [( g8 b: X+ Z0 {/ Q5 U
httpd.conf ===> NameVirtualHost 192.168.1.12:80  ,  virtual1.confvirtual2.conf ===> <VirtualHost 192.168.1.12:80>
$ P2 h0 x7 T9 d

" i* ~! ^, e9 r+ T9 ?: f" J% S
6 Y/ m( I+ h, w! C2 r$ A8 V
2 a6 H' k" j' D4 M4 n( ?: B1 D

雿輻券

祉蝛閬

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

QQ|撠暺撅||52AV璈A

GMT+8, 2026-1-25 15:27 , Processed in 0.066279 second(s), 16 queries .

蝯∠.撱

[email protected] | QQ:2405733034     since 2015-01

鋆貉憒 敹恍敺 餈銵