<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
# front-end: nginx<br>
-=>> cat /etc/nginx/vhosts/201.conf<br>
server {<br>
listen 80;<br>
include /etc/nginx/vhosts/201.domains;<br>
include /etc/nginx/errors/errors.conf;<br>
access_log /var/log/nginx/201-access.log nginx;<br>
location / { proxy_pass <a class="moz-txt-link-freetext" href="http://192.168.4.11:80/">http://192.168.4.11:80/</a> ;}<br>
location /nginx_status {stub_status on;}<br>
location ^~ /.icons/ {alias /etc/apache2/icons/;}<br>
location ~ (empty\.gif|blank\.gif|spacer\.gif) {empty_gif;}<br>
}<br>
<br>
-=>> cat /etc/nginx/vhosts/201.domains<br>
server_name domain1 domain2 domain3 domain4;<br>
############################################<br>
# back-end container: apache2<br>
<VirtualHost *:80><br>
DocumentRoot /home/domain/www/<br>
AddHandler x-httpd-php5 .php .php3 .php4 .php5<br>
ServerName domain1<br>
ServerAlias <a class="moz-txt-link-abbreviated" href="http://www.domain1">www.domain1</a><br>
ErrorLog /home/domain/logs/error.log<br>
CustomLog /home/domain/logs/access.log common<br>
<Directory " /home/domain/www/"><br>
Options -Indexes +Includes +ExecCGI MultiViews
FollowSymLinks<br>
AllowOverride All<br>
Order allow,deny<br>
Allow from all<br>
</Directory><br>
</VirtualHost><br>
############################################<br>
<br>
<br>
<br>
06.12.2010 18:44, Benjamin Henrion пишет:
<blockquote
cite="mid:AANLkTimupZgunOw2eNUR90T2swc+4tQSs=G8mR-8iAoX@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
I want to host 3 different webservers into 3 different containers, but
I have only one public IP on the Hardware node.
Does anybody has a simple config of apache in mod_proxy or lighttpd?
Best,
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<img src="cid:part1.09080408.01040405@pronskiy.ru" border="0"></div>
</body>
</html>