diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-04 18:53:20 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2010-07-04 18:53:20 +0000 |
commit | 446b4021373ac2dca03a103b6aab867b4016f12f (patch) | |
tree | 7825d79a06be17c75eb639cbd0aa344d309e0a23 /sca-cpp/trunk/samples | |
parent | 1739cae84d32710d1e839beb994e149a3e587197 (diff) |
Add utility script to map port 80 to httpd's port.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@960381 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/samples')
-rwxr-xr-x | sca-cpp/trunk/samples/store-python/redirect | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sca-cpp/trunk/samples/store-python/redirect b/sca-cpp/trunk/samples/store-python/redirect new file mode 100755 index 0000000000..6430a6b274 --- /dev/null +++ b/sca-cpp/trunk/samples/store-python/redirect @@ -0,0 +1,24 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Redirect ports 80 and 443 +intf=$1 +../../ubuntu/ip-redirect 80 8090 $intf +../../ubuntu/ip-redirect 443 8453 $intf + |