Browse Source

Fixed apache support of proxy

master
Artyom Beilis 15 years ago
parent
commit
9ab019ea02
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      cppcms_run

+ 3
- 2
cppcms_run View File

@@ -407,9 +407,9 @@ if ! [ -f "$APACHE_MOD_DIR/mod_scgi.$APACHE_MOD_EXT" ] && [ "$API" == "scgi" ];
fi
fi

if ! [ -f "$APACHE_MOD_DIR/mod_proxy.$APACHE_MOD_EXT" ] && [ "$API" == "http" ]; then
if ! [ -f "$APACHE_MOD_DIR/mod_proxy_http.$APACHE_MOD_EXT" ] && [ "$API" == "http" ]; then
if [ "$1" == "exit" ] ; then
echo "Can't find apache proxy modue"
echo "Can't find apache proxy_http modue"
exit 1
else
WEB_SERVER=""
@@ -503,6 +503,7 @@ then

cat >>$DIR/apache.conf <<EOF
LoadModule proxy_module $APACHE_MOD_DIR/mod_proxy.$APACHE_MOD_EXT
LoadModule proxy_http_module $APACHE_MOD_DIR/mod_proxy_http.$APACHE_MOD_EXT
ProxyPass $SCRIPT http://$SERVICE_IP:$SERVICE_PORT$SCRIPT
EOF



Loading…
Cancel
Save