Skip to content

Commit 1e4d376

Browse files
authored
Merge pull request #341 from jajik/playground
Use port 8090 only instead of two ports (6666, 8000)
2 parents ce60140 + ab246c9 commit 1e4d376

33 files changed

Lines changed: 95 additions & 94 deletions

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ jobs:
166166
./buildconf
167167
./configure --prefix=/usr/local/apache2 --with-included-apr --enable-proxy-ajp --enable-maintainer-mode \
168168
--enable-so --enable-proxy --enable-proxy-http --enable-proxy-wstunned --enable-proxy-hcheck \
169-
--with-port=8000
169+
--with-port=8090
170170
sudo make
171171
sudo make install
172172
- name: Build mod_proxy_cluster and add it to httpd
@@ -217,12 +217,12 @@ jobs:
217217
cp test\httpd\mod_proxy_cluster.conf ${{ env.HTTPD_DEV_HOME }}\conf\mod_proxy_cluster.conf
218218
echo "LogLevel debug" >> ${{ env.HTTPD_DEV_HOME }}\conf\mod_proxy_cluster.conf
219219
echo "Include conf/mod_proxy_cluster.conf" >> ${{ env.HTTPD_DEV_HOME }}\conf\httpd.conf
220-
(Get-Content ${{ env.HTTPD_DEV_HOME }}\conf\httpd.conf) | %{$_ -replace "Listen 80","Listen 8000"} | Set-Content -Path ${{ env.HTTPD_DEV_HOME }}\conf\httpd.conf
220+
(Get-Content ${{ env.HTTPD_DEV_HOME }}\conf\httpd.conf) | %{$_ -replace "Listen 80","#Listen 80"} | Set-Content -Path ${{ env.HTTPD_DEV_HOME }}\conf\httpd.conf
221221
- name: Run
222222
run: |
223223
Start-Process -FilePath ${{ env.HTTPD_DEV_HOME }}\bin\httpd.exe
224-
curl --fail --max-time 10 http://localhost:8000
225-
curl --fail --max-time 10 http://localhost:6666/mod_cluster_manager
224+
curl --fail --max-time 10 http://localhost:8090
225+
curl --fail --max-time 10 http://localhost:8090/mod_cluster_manager
226226
- name: Preserve logs
227227
uses: actions/upload-artifact@v4
228228
if: always()

native/scripts/installhome.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ do
6767
echo "$file"
6868
cp -p $file $file.new
6969
echo "s:${BASEHTTPD}:${RPM_BUILD_ROOT}:" > sed.cmd
70-
echo "s/Listen 80.*/Listen 8000/" >> sed.cmd
70+
echo "s/Listen 80.*/Listen 8090/" >> sed.cmd
7171
sed -f sed.cmd $file > $file.new
7272
mv $file.new $file
7373
rm -f sed.cmd

test/MODCLUSTER-640/mod_lbmethod_cluster.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ ProxyPreserveHost On
1414
UseNocanon On
1515

1616
<IfModule manager_module>
17-
Listen 6666
17+
Listen 8090
1818
ManagerBalancerName mycluster
1919

2020
EnableWsTunnel
2121
WSUpgradeHeader websocket
22-
<VirtualHost *:6666>
22+
<VirtualHost *:8090>
2323
EnableMCMPReceive
2424
<Location />
2525
Require ip 127.0.0.1

test/MODCLUSTER-640/mod_proxy_cluster.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ProxyPreserveHost On
1717
</IfModule>
1818

1919
<IfModule manager_module>
20-
Listen 6666
20+
Listen 8090
2121
ManagerBalancerName mycluster
2222

2323
<IfModule !lbmethod_cluster_module>
@@ -27,7 +27,7 @@ ProxyPreserveHost On
2727

2828
EnableWsTunnel
2929
WSUpgradeHeader websocket
30-
<VirtualHost *:6666>
30+
<VirtualHost *:8090>
3131
EnableMCMPReceive
3232
<Location />
3333
Require ip 127.0.0.1

test/MODCLUSTER-640/testit.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ docker cp MODCLUSTER-640/webapp1 tomcat2:/usr/local/tomcat/webapps/webapp1
2929
sleep 12
3030

3131
# test the URL
32-
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8000/webapp1/index.html)
32+
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8090/webapp1/index.html)
3333
if [ "${code}" != "200" ]; then
34-
echo "nocanon test failed, we get ${code} on http://localhost:8000/webapp1/index.html"
34+
echo "nocanon test failed, we get ${code} on http://localhost:8090/webapp1/index.html"
3535
exit 1
3636
fi
37-
curl -v -m 20 "http://localhost:8000/webapp1/jsr%3aroot/toto" | grep "jsr:root"
37+
curl -v -m 20 "http://localhost:8090/webapp1/jsr%3aroot/toto" | grep "jsr:root"
3838
if [ $? -eq 0 ]; then
3939
echo "nocanon test failed, we get \"jsr:root\"!!!"
4040
exit 1
@@ -49,12 +49,12 @@ docker exec MODCLUSTER-640 /usr/local/apache2/bin/apachectl restart
4949
tomcat_wait_for_n_nodes 2
5050

5151
# test the URL
52-
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8000/webapp1/index.html)
52+
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8090/webapp1/index.html)
5353
if [ "${code}" != "200" ]; then
54-
echo "nocanon test failed, we get ${code} on http://localhost:8000/webapp1/index.html"
54+
echo "nocanon test failed, we get ${code} on http://localhost:8090/webapp1/index.html"
5555
exit 1
5656
fi
57-
curl -v -m 20 "http://localhost:8000/webapp1/jsr%3aroot/toto" | grep "jsr:root"
57+
curl -v -m 20 "http://localhost:8090/webapp1/jsr%3aroot/toto" | grep "jsr:root"
5858
if [ $? -ne 0 ]; then
5959
echo "NO nocanon test failed, we don't get \"jsr:root\"!!!"
6060
exit 1
@@ -68,12 +68,12 @@ docker exec MODCLUSTER-640 /usr/local/apache2/bin/apachectl restart
6868
tomcat_wait_for_n_nodes 2
6969

7070
# test the URL
71-
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8000/webapp1/index.html)
71+
code=$(/usr/bin/curl -o /dev/null -s -m 20 --write-out '%{http_code}' http://localhost:8090/webapp1/index.html)
7272
if [ "${code}" != "200" ]; then
73-
echo "nocanon test failed, we get ${code} on http://localhost:8000/webapp1/index.html"
73+
echo "nocanon test failed, we get ${code} on http://localhost:8090/webapp1/index.html"
7474
exit 1
7575
fi
76-
curl -v -m 20 "http://localhost:8000/webapp1/jsr%3aroot/toto" | grep "jsr:root"
76+
curl -v -m 20 "http://localhost:8090/webapp1/jsr%3aroot/toto" | grep "jsr:root"
7777
if [ $? -eq 0 ]; then
7878
echo "nocanon test failed, we get \"jsr:root\"!!!"
7979
tomcat_all_remove

test/MODCLUSTER-734/mod_lbmethod_cluster.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ ModProxyClusterHCTemplate hcmethod=GET hcexpr=in_maint hcuri=/status.jsp
1414
Maxnode 505
1515
Maxhost 1010
1616
Maxcontext 1100
17-
Listen 6666
17+
Listen 8090
1818
ManagerBalancerName mycluster
1919
ServerName localhost
2020

21-
<VirtualHost *:6666>
21+
<VirtualHost *:8090>
2222
EnableMCMPReceive
2323
<Location />
2424
Require ip 127.0.0.

test/MODCLUSTER-734/mod_proxy_cluster.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ ModProxyClusterHCTemplate hcmethod=GET hcexpr=in_maint hcuri=/status.jsp
1111
Maxnode 505
1212
Maxhost 1010
1313
Maxcontext 1100
14-
Listen 6666
14+
Listen 8090
1515
ManagerBalancerName mycluster
1616
ServerName localhost
1717

18-
<VirtualHost *:6666>
18+
<VirtualHost *:8090>
1919
EnableMCMPReceive
2020
<Location />
2121
Require ip 127.0.0.1

test/MODCLUSTER-734/testit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ docker cp MODCLUSTER-734/ROOT_OK tomcat2:/usr/local/tomcat/webapps/ROOT
3131
# and mark the node not OK.
3232
sleep 15
3333

34-
curl -s -m 20 http://localhost:6666/mod_cluster_manager | grep "Status: NOTOK"
34+
curl -s -m 20 http://localhost:8090/mod_cluster_manager | grep "Status: NOTOK"
3535
if [ $? -eq 0 ]; then
3636
echo "MODCLUSTER-734 Done!"
3737
else

test/MODCLUSTER-736/testit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ singlecycle() {
8989
i=0
9090
while true
9191
do
92-
curl -s -m 20 http://localhost:6666/mod_cluster_manager | grep Node | grep tomcat$1 > /dev/null
92+
curl -s -m 20 http://localhost:8090/mod_cluster_manager | grep Node | grep tomcat$1 > /dev/null
9393
if [ $? -eq 0 ]; then
9494
break
9595
fi
@@ -106,7 +106,7 @@ singlecycle() {
106106
i=0
107107
while true
108108
do
109-
curl -s -m 20 http://localhost:6666/mod_cluster_manager | grep /tomcat$1 > /dev/null
109+
curl -s -m 20 http://localhost:8090/mod_cluster_manager | grep /tomcat$1 > /dev/null
110110
if [ $? -eq 0 ]; then
111111
break
112112
fi
@@ -126,7 +126,7 @@ singlecycle() {
126126
tomcat_shutdown $1 127.0.0.$R || exit 1
127127
while true
128128
do
129-
curl -s -m 20 http://localhost:6666/mod_cluster_manager | grep Node | grep tomcat$1 > /dev/null
129+
curl -s -m 20 http://localhost:8090/mod_cluster_manager | grep Node | grep tomcat$1 > /dev/null
130130
if [ $? -ne 0 ]; then
131131
break
132132
fi

test/MODCLUSTER-755/mod_lbmethod_cluster.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ LoadModule watchdog_module modules/mod_watchdog.so
1111
Maxnode 505
1212
Maxhost 1010
1313
Maxcontext 1100
14-
Listen 6666
14+
Listen 8090
1515
ManagerBalancerName mycluster
1616
ServerName localhost
1717

18-
<VirtualHost *:6666>
18+
<VirtualHost *:8090>
1919
EnableMCMPReceive
2020
<Location />
2121
Require ip 127.0.0.1

0 commit comments

Comments
 (0)