fedora-infra/bodhi

bodhi server web Incorrect static resource path for httpd

kiraskyler opened this issue · 0 comments

# yum install bodhi-server

there is python3.11 in fedora 38 and static resource path is /usr/lib/python3.11/site-packages/bodhi/server/static/
but there is python3.7 in /etc/httpd/conf.d/bodhi.conf

[root@fedora rpmbuild]# ll /usr/lib/python3.11/site-packages/bodhi/server/static/
总计 44
-rw-r--r--.  1 root root 10425  1月11日 08:00 bodhi-logo.svg
drwxr-xr-x.  2 root root  4096  6月13日 09:50 css
drwxr-xr-x.  5 root root  4096  6月13日 09:50 fonts
drwxr-xr-x.  2 root root  4096  6月13日 09:50 ico
drwxr-xr-x.  2 root root  4096  6月13日 09:50 img
-rw-r--r--.  1 root root   832  1月11日 08:00 __init__.py
drwxr-xr-x.  2 root root  4096  6月13日 09:50 js
drwxr-xr-x.  2 root root  4096  6月13日 09:50 __pycache__
drwxr-xr-x. 10 root root  4096  6月13日 09:50 vendor

[root@fedora rpmbuild]# cat  /etc/httpd/conf.d/bodhi.conf 
Alias /static/v8.0.2 /usr/lib/python3.7/site-packages/bodhi/server/static/

WSGIDaemonProcess bodhi user=bodhi group=bodhi display-name=bodhi processes=2 threads=2
WSGISocketPrefix run/wsgi
WSGIRestrictStdout On
WSGIRestrictSignal Off
WSGIPythonOptimize 1

WSGIScriptAlias / /usr/share/bodhi/bodhi.wsgi

<Location />
    WSGIProcessGroup bodhi
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
    </IfModule>
    <IfModule !mod_authz_core.c>
         # Apache 2.2
        Order deny,allow
        Allow from all
    </IfModule>
</Location>
[root@fedora rpmbuild]# python3 --version
Python 3.11.9
[root@fedora rpmbuild]# cat /etc/system-release
Fedora release 38 (Thirty Eight)