[Users] Simple HTTP proxy for sharing a port on the HN?
pavel at pronskiy.ru
pavel at pronskiy.ru
Tue Dec 14 13:35:31 EST 2010
# front-end: nginx
-=>> cat /etc/nginx/vhosts/201.conf
server {
listen 80;
include /etc/nginx/vhosts/201.domains;
include /etc/nginx/errors/errors.conf;
access_log /var/log/nginx/201-access.log nginx;
location / { proxy_pass http://192.168.4.11:80/ ;}
location /nginx_status {stub_status on;}
location ^~ /.icons/ {alias /etc/apache2/icons/;}
location ~ (empty\.gif|blank\.gif|spacer\.gif) {empty_gif;}
}
-=>> cat /etc/nginx/vhosts/201.domains
server_name domain1 domain2 domain3 domain4;
############################################
# back-end container: apache2
<VirtualHost *:80>
DocumentRoot /home/domain/www/
AddHandler x-httpd-php5 .php .php3 .php4 .php5
ServerName domain1
ServerAlias www.domain1
ErrorLog /home/domain/logs/error.log
CustomLog /home/domain/logs/access.log common
<Directory " /home/domain/www/">
Options -Indexes +Includes +ExecCGI MultiViews
FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
############################################
06.12.2010 18:44, Benjamin Henrion ?????:
> 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,
>
--
-------------- next part --------------
Skipped content of type multipart/related
More information about the Users
mailing list