Nginx 域名传递 Apache 虚拟主机

Posted by bower on February 11, 2011
linux/ubuntu

freundin will flirten 分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Nginx to proxy virtual hosts to Apache

bekanntschaften mosbach 需求:两台服务器,一台nginx 是总入口, 一台跑apache

additional resources

strattera no prescription nginx把指定域名转向apache, 此类域名有多个,所以apache 要用virtal host 根据不同域名指向不同目录,

saludcoop citas en linea registrarse 关键一点是要将域名信息从nginx传向apache

http://metodosalargarpene.es/ebioer/1319 nginx配置:

angst vor treffen mit jungs server { server_name example.com; proxy_pass http://192.168.1.103; proxy_set_header Host $host;#关键 } server { server_name fghrt.com; proxy_pass http://192.168.1.103; proxy_set_header Host $host; }

apache

 <VirtualHost *:80>
  ServerName example.com
  …
</VirtualHost>

 <VirtualHost *:80>
  ServerName fghrt.com
  …
</VirtualHost>

eharmony dating questionnaire 分享到:人人网开心网腾讯微博新浪微博豆瓣分享腾讯空间百度搜藏腾讯书签

分享给你的朋友->bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark bookmark

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word