This is the apache configuration. It was working before I updated python to 3.11.
```
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName
www.henojiya.net ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
LoadModule wsgi_module modules/mod_wsgi.so
LoadModule wsgi_module /var/www/html/venv/lib/python3.11/site-packages/mod_wsgi/server/
mod_wsgi-py311.cpython-311-x86_64-linux-gnu.soWSGIScriptAlias / /var/www/html/portfolio/mysite/mysite/wsgi.py
WSGIPythonPath /var/www/html/portfolio/mysite
WSGIPythonHome /var/www/html/venv
WSGIDaemonProcess wsgi_app python-home=/var/www/html/venv python-path=/var/www/html/portfolio/mysite
WSGIProcessGroup wsgi_app
WSGISocketPrefix /var/run/wsgi
WSGIApplicationGroup %{GLOBAL}
# css, javascript etc
Alias /static/ /var/www/html/portfolio/mysite/static/
<Directory /var/www/html/portfolio/mysite/static>
Require all granted
</Directory>
```
After deleting the log, when I restart and check the status, the following error appears.
```
[Thu Dec 14 20:29:36.782463 2023] [ssl:warn] [pid 1313720:tid 140180280511552] AH01909: ik1-336-28225.vs.sakura.ne.jp:443:0 server certificate does NOT include an ID which matches the server name
[Thu Dec 14 20:29:36.788504 2023] [so:warn] [pid 1313720:tid 140180280511552] AH01574: module wsgi_module is already loaded, skipping
[Thu Dec 14 20:29:36.788520 2023] [so:warn] [pid 1313720:tid 140180280511552] AH01574: module wsgi_module is already loaded, skipping
[Thu Dec 14 20:29:36.800040 2023] [ssl:warn] [pid 1313721:tid 140180280511552] AH01909: ik1-336-28225.vs.sakura.ne.jp:443:0 server certificate does NOT include an ID which matches the server name
[Thu Dec 14 20:29:36.800990 2023] [mpm_event:notice] [pid 1313721:tid 140180280511552] AH00489: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f mod_wsgi/4.6.8 Python/3.8 configured -- resuming normal operations
[Thu Dec 14 20:29:36.801010 2023] [core:notice] [pid 1313721:tid 140180280511552] AH00094: Command line: '/usr/sbin/apache2'
```
The mod_wsgi operating system package may be installed.
I'll try resetting the OS once.
thank you
2023年12月14日木曜日 19:44:38 UTC+9 Graham Dumpleton: