summaryrefslogtreecommitdiffstats
path: root/pki/base/ra
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-06-24 23:53:23 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2009-06-24 23:53:23 +0000
commitaf85398eb2bdd8fe2e732969c7a8a4acf42fabbb (patch)
tree223b559c92214e296a10c3a210716168b99e2627 /pki/base/ra
parent3674360c6f4c11ac06dbc42cbbbfe903f67ed9ef (diff)
downloadpki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.tar.gz
pki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.tar.xz
pki-af85398eb2bdd8fe2e732969c7a8a4acf42fabbb.zip
Bugzilla Bug #507746 - Configure TPS/RA to listen on Ipv4 and Ipv6.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@653 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/ra')
-rw-r--r--pki/base/ra/apache/conf/httpd.conf2
-rw-r--r--pki/base/ra/apache/conf/nss.conf4
-rwxr-xr-xpki/base/ra/etc/init.d/httpd8
3 files changed, 7 insertions, 7 deletions
diff --git a/pki/base/ra/apache/conf/httpd.conf b/pki/base/ra/apache/conf/httpd.conf
index 7362d80ce..4e6d2151f 100644
--- a/pki/base/ra/apache/conf/httpd.conf
+++ b/pki/base/ra/apache/conf/httpd.conf
@@ -217,7 +217,7 @@ MaxRequestsPerChild 0
#
#Listen 12.34.56.78:80
-Listen 0.0.0.0:[PORT]
+Listen [PORT]
#
# Dynamic Shared Object (DSO) Support
diff --git a/pki/base/ra/apache/conf/nss.conf b/pki/base/ra/apache/conf/nss.conf
index 2d8ad8720..668074e4c 100644
--- a/pki/base/ra/apache/conf/nss.conf
+++ b/pki/base/ra/apache/conf/nss.conf
@@ -15,9 +15,9 @@
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
# Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
-Listen 0.0.0.0:[SECURE_PORT]
+Listen [SECURE_PORT]
-Listen 0.0.0.0:[NON_CLIENTAUTH_SECURE_PORT]
+Listen [NON_CLIENTAUTH_SECURE_PORT]
##
## SSL Global Context
diff --git a/pki/base/ra/etc/init.d/httpd b/pki/base/ra/etc/init.d/httpd
index 77c60966c..bacfeb214 100755
--- a/pki/base/ra/etc/init.d/httpd
+++ b/pki/base/ra/etc/init.d/httpd
@@ -231,7 +231,7 @@ get_pki_status_definitions()
if [ "$head" == "$listen_statement" ] ; then
# once the 'unsecure' listen statement has been found,
# extract the numeric port information
- port=`echo $line | cut -d: -f2`
+ port=`echo $line | cut -b8-`
UNSECURE_PORT=$port
echo " Unsecure Port = http://[SERVER_NAME]:${UNSECURE_PORT}"
total_ports=`expr ${total_ports} + 1`
@@ -251,7 +251,7 @@ get_pki_status_definitions()
[ ${total_ports} -eq 2 ] ; then
# once the 'non-clientauth' listen statement has been found,
# extract the numeric port information
- non_clientauth_port=`echo $line | cut -d: -f2`
+ non_clientauth_port=`echo $line | cut -b8-`
NON_CLIENTAUTH_PORT=$non_clientauth_port
echo " Secure Non-Clientauth Port = https://[SERVER_NAME]:${NON_CLIENTAUTH_PORT}"
total_ports=`expr ${total_ports} + 1`
@@ -261,7 +261,7 @@ get_pki_status_definitions()
[ ${total_ports} -eq 1 ] ; then
# once the 'clientauth' listen statement has been found,
# extract the numeric port information
- clientauth_port=`echo $line | cut -d: -f2`
+ clientauth_port=`echo $line | cut -b8-`
CLIENTAUTH_PORT=$clientauth_port
echo " Secure Clientauth Port = https://[SERVER_NAME]:${CLIENTAUTH_PORT}"
total_ports=`expr ${total_ports} + 1`
@@ -483,7 +483,7 @@ get_pki_secure_port()
if [ "$head" == "$listen_statement" ] ; then
# once the 'clientauth' listen statement has been found,
# extract the numeric port information
- port=`echo $line | cut -d: -f2`
+ port=`echo $line | cut -b8-`
SECURE_PORT=$port
return 0
fi