我在Ubuntu 21.04上安装的Searx1.0作为uWSGI不起作用。我有一个“内部服务器错误”,不知道为什么。/etc/log/apache2中没有任何日志。有什么想法吗
settings.yml
use_default_settings: True
general:
debug : False # Debug mode, only for development
instance_name : "OccuSearch" # displayed name
search:
safe_search : 0 # Filter results. 0: None, 1: Moderate, 2: Strict
autocomplete : "" # Existing autocomplete backends: "dbpedia", "duckduckgo", "google", "startpage", "swisscows", "qwant", "wikipedia" - leave blank to turn it off>
default_lang : "" # Default search language - leave blank to detect from browser information or use codes from 'languages.py'
server:
port : 8888
bind_address : "127.0.0.1" # address to listen on
secret_key : "jklnsdfg7896342tuhziofdsgz78034" # change this!
base_url : https://occusearch.net/ # Set custom base_url. Possible values: False or "https://your.custom.host/location/"
image_proxy : True # Proxying image results through searx
# uncomment below section if you have running morty proxy
#result_proxy:
# url: http://occusearch.net/morty/
# key: !!binary "L8fs0yTbyjacBm3qzXc8R8gflbSRkqlHL9ab+qDnjIA="
/etc/apache2/sites available/007-ocksearch-net-le-ssl.conf
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName occusearch.net
ServerAdmin webmaster@occusearch.net
DocumentRoot /var/www/occusearch_net
ErrorLog ${APACHE_LOG_DIR}/searx_error.log
CustomLog ${APACHE_LOG_DIR}/searx_access.log combined
<Location /searx>
Require all granted
Order deny,allow
Deny from all
# Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1
Allow from all
ProxyPreserveHost On
ProxyPass unix:/run/uwsgi/app/searx/socket|uwsgi://uwsgi-uds-searx/
</Location>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/occusearch.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/occusearch.net/privkey.pem
</VirtualHost>
</IfModule>
/etc/uwsgi/apps available/searx.ini
[uwsgi]
# uWSGI core
# ----------
#
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#uwsgi-core
# Who will run the code
uid = searx
gid = searx
# set (python) default encoding UTF-8
env = LANG=C.UTF-8
env = LANGUAGE=C.UTF-8
env = LC_ALL=C.UTF-8
# chdir to specified directory before apps loading
chdir = /usr/local/searx/searx-src/searx
# searx configuration (settings.yml)
env = SEARX_SETTINGS_PATH=/etc/searx/settings.yml
# disable logging for privacy
disable-logging = true
# The right granted on the created socket
chmod-socket = 666
# Plugin to use and interpretor config
single-interpreter = true
# enable master process
master = true
# load apps in each worker instead of the master
lazy-apps = true
# load uWSGI plugins
plugin = python3,http
# By default the Python plugin does not initialize the GIL. This means your
# app-generated threads will not run. If you need threads, remember to enable
# them with enable-threads. Running uWSGI in multithreading mode (with the
# threads options) will automatically enable threading support. This *strange*
# default behaviour is for performance reasons.
enable-threads = true
# plugin: python
# --------------
#
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-python
# load a WSGI module
module = searx.webapp
# set PYTHONHOME/virtualenv
virtualenv = /usr/local/searx/searx-pyenv
# add directory (or glob) to pythonpath
pythonpath = /usr/local/searx/searx-src
# speak to upstream
# -----------------
#
# Activate the 'http' configuration for filtron or activate the 'socket'
# configuration if you setup your HTTP server to use uWSGI protocol via sockets.
# using IP:
#
# https://uwsgi-docs.readthedocs.io/en/latest/Options.html#plugin-http
# Native HTTP support: https://uwsgi-docs.readthedocs.io/en/latest/HTTP.html
http = 127.0.0.1:8888
# using unix-sockets:
#
# On some distributions you need to create the app folder for the sockets::
#
# mkdir -p /run/uwsgi/app/searx
# chown -R searx:searx /run/uwsgi/app/searx
#
socket = /run/uwsgi/app/searx/socket
# Cache
cache2 = name=searxcache,items=2000,blocks=2000,blocksize=4096,bitmap=1
怎么了
致以最良好的祝愿, 马库斯本特
目前没有回答
相关问题 更多 >
编程相关推荐