我有一个问题:安装和设置https我的网站后停止工作。
我只能导航到索引页面。如果我选择登录或创建帐户,我会收到错误提示页面不存在:
未找到 在此服务器上未找到请求的 URL
我不知道这是 Apache 的错还是 Laravel 的错。
我正在使用 Virtualmin、Ubuntu 20.4 lite、apache 和 Laravel。我在服务器上的目录是/home/domain/public_html/. 在public_html我的 Laravel 项目下,包含所有文件和文件夹。
这是用于 Apache 的设置,通过 virtualmin 进行配置。
SuexecUserGroup "#1000" "#1000"
ServerName *mydomain*.se
ServerAlias www.*mydomain*.se
ServerAlias mail.*mydomain*.se
ServerAlias webmail.*mydomain*.se
ServerAlias admin.*mydomain*.se
DocumentRoot /home/*mydomain*/public_html/public
ErrorLog /var/log/virtualmin/*mydomain*.se_error_log
CustomLog /var/log/virtualmin/*mydomain*.se_access_log combined
ScriptAlias /cgi-bin/ /home/*mydomain*/cgi-bin/
ScriptAlias /awstats/ /home/*mydomain*/cgi-bin/
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
DocumentRoot "/home/*mydomain*/public_html/public"
<Directory "/home/*mydomain*/public_html/public">
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php7.4
FCGIWrapper /home/*mydomain*/fcgi-bin/php7.4.fcgi .php
FCGIWrapper /home/*mydomain*/fcgi-bin/php7.4.fcgi .php7.4
</Directory>
<Directory /home/*mydomain*/cgi-bin>
Allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
</Directory>
RewriteEngine On
RewriteCond %{HTTP_HOST} =webmail.*mydomain*.se
RewriteRule ^(?!/.well-known)(.*) https://*mydomain*.se:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.*mydomain*.se
RewriteRule ^(?!/.well-known)(.*) https://*mydomain*.se:10000/ [R]
RemoveHandler .php
RemoveHandler .php7.4
FcgidMaxRequestLen 1073741824
<Files awstats.pl>
AuthName "*mydomain*.se statistics"
AuthType Basic
AuthUserFile /home/*mydomain*/.awstats-htpasswd
require valid-user
</Files>
Alias /dav "/home/*mydomain*/public_html/public"
<Location /dav>
DAV on
AuthType Basic
AuthName "*mydomain*.se"
AuthUserFile /home/*mydomain*/etc/dav.digest.passwd
Require valid-user
ForceType text/plain
Satisfy All
RemoveHandler .php
RemoveHandler .php7.4
RewriteEngine off
</Location>
IPCCommTimeout 9999
<Directory "/home/*mydomain*/public_html/public/phpmyadmin">
</Directory>
有人可以帮帮我吗?我在论坛上搜索了答案并测试了不同的设置,但对我没有任何作用。