mirror of
https://github.com/bitnami/containers.git
synced 2026-02-23 17:07:21 +08:00
Adding vhosts to Apache
This commit is contained in:
@@ -3,13 +3,14 @@ MAINTAINER Bitnami <containers@bitnami.com>
|
||||
|
||||
ENV BITNAMI_APP_NAME=apache \
|
||||
BITNAMI_APP_USER=daemon \
|
||||
BITNAMI_APP_VERSION=2.4.12-2-r01 \
|
||||
BITNAMI_APP_VERSION=2.4.12-2-r02 \
|
||||
BITNAMI_APP_DIR=$BITNAMI_PREFIX/apache2
|
||||
|
||||
ENV BITNAMI_APP_VOL_PREFIX=/bitnami/$BITNAMI_APP_NAME \
|
||||
PATH=$BITNAMI_APP_DIR/bin:$PATH
|
||||
|
||||
RUN sh $BITNAMI_PREFIX/install.sh
|
||||
COPY vhosts/* $BITNAMI_APP_DIR/conf.defaults/vhosts/
|
||||
|
||||
EXPOSE 80 443
|
||||
VOLUME ["$BITNAMI_APP_VOL_PREFIX/conf", "$BITNAMI_APP_VOL_PREFIX/logs", "/app"]
|
||||
|
||||
11
bitnami/apache/vhosts/node.conf.example
Normal file
11
bitnami/apache/vhosts/node.conf.example
Normal file
@@ -0,0 +1,11 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName yourapp.com
|
||||
DocumentRoot "/app"
|
||||
ProxyPass / http://[your_node_container_link_alias]:3000
|
||||
ProxyPassReverse / http://[your_node_container_link_alias]:3000
|
||||
<Directory "/app">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
10
bitnami/apache/vhosts/php-fpm.conf.example
Normal file
10
bitnami/apache/vhosts/php-fpm.conf.example
Normal file
@@ -0,0 +1,10 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName yourapp.com
|
||||
DocumentRoot "/app"
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://[your_php-fpm_container_link_alias]:9000/app/$1
|
||||
<Directory "/app">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
11
bitnami/apache/vhosts/ruby.conf.example
Normal file
11
bitnami/apache/vhosts/ruby.conf.example
Normal file
@@ -0,0 +1,11 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName yourapp.com
|
||||
DocumentRoot "/app"
|
||||
ProxyPass / http://[your_ruby_container_link_alias]:3000
|
||||
ProxyPassReverse / http://[your_ruby_container_link_alias]:3000
|
||||
<Directory "/app">
|
||||
Options Indexes FollowSymLinks
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user