Apache没有在错误日志中记录错误。它只是显示相同的几行

2024-09-25 00:30:44 发布

您现在位置:Python中文网/ 问答频道 /正文

以下是我尝试通过Apache错误日志(在我的digital ocean服务器中)访问时显示的内容:

[Tue Aug 29 06:25:02.680766 2017] [ssl:warn] [pid 8282:tid 
140418378721152] AH01909: mydomainname.com:443:0 server certificate 
does NOT include an ID which matches the server name
[Tue Aug 29 06:25:02.681138 2017] [wsgi:warn] [pid 8282:tid 
140418378721152] mod_wsgi: Compiled for Python/3.5.1+.
[Tue Aug 29 06:25:02.681148 2017] [wsgi:warn] [pid 8282:tid 
140418378721152] mod_wsgi: Runtime using Python/3.5.2.
[Tue Aug 29 06:25:02.683899 2017] [mpm_event:notice] [pid 8282:tid 
140418378721152] AH00489: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g m 
od_wsgi/4.3.0 Python/3.5.2 configured -- resuming normal operations
[Tue Aug 29 06:25:02.683936 2017] [core:notice] [pid 8282:tid 
140418378721152] AH00094: Command line: '/usr/sbin/apache2'
[Wed Aug 30 06:25:01.905011 2017] [mpm_event:notice] [pid 8282:tid 
140418378721152] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully 
qualified domain name, using fe80::705e:5bff:fe93:1faf. Set the 
'ServerName' directive globally to suppress this message

未显示错误。好心的建议。你知道吗

另外:我已经用一个新的名字来隐藏我原来的域名了我的域名.com你知道吗

根据Dumpleton先生的要求,以下是我的apache设置:

Alias /xxxxxxx /home/user_name/project/static/static_distributor
<Directory /home/user_name/project/static/static_distributor>
    Require all granted
</Directory>



WSGIDaemonProcess distributor_nossl python-home=/home/user_name/name_of_virtualenv_folder python-path=/home/user_name/project/django_project_folder
WSGIProcessGroup distributor_nossl
WSGIScriptAlias / /home/user_name/project/django_project_folder/django_project_subfolder/wsgi.py process-group=distributor_nossl
<Directory /home/user_name/project/django_project_folder/django_project_subfolder>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

SSLCertificateFile 
/etc/letsencrypt/live/www.mydomainname.com/fullchain.pem
SSLCertificateKeyFile 
/etc/letsencrypt/live/www.mydomainname.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
ServerName mydomainname.com
ServerAlias www.mydomainname.com

我正在使用用于SSL的letsencrypt。你知道吗


Tags: djangonameprojectcomwsgihomestaticpid