Skip to content

Commit 451b228

Browse files
committed
Add redirect of API calls from proxy to the server
1 parent 1f8c3aa commit 451b228

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Add redirect of API calls from proxy to the server (bsc#1241880)

containers/proxy-httpd-image/uyuni-configure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ def insert_under_line(file_path, line_to_match, line_to_insert):
221221
) as file:
222222
file.write("WSGIScriptAlias /pub /usr/share/rhn/wsgi/xmlrpc.py")
223223

224+
# redirect API calls to the server
225+
with open("/etc/apache2/conf.d/smlm-api.conf", "w", encoding="utf-8") as file:
226+
file.write("WSGIScriptAlias /rhn/manager/api /usr/share/rhn/wsgi/xmlrpc.py")
227+
224228
with open("/etc/apache2/vhosts.d/ssl.conf", "w", encoding="utf-8") as file:
225229
file.write(
226230
f"""

0 commit comments

Comments
 (0)