fedora-infra / bodhi

Bodhi is a web-system that facilitates the process of publishing updates for a Fedora-based software distribution.
https://bodhi.fedoraproject.org
GNU General Public License v2.0
150 stars 189 forks source link

bodhi server web Incorrect static resource path for httpd #5680

Closed kiraskyler closed 1 week ago

kiraskyler commented 2 weeks ago
# 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)