我已按照以下(myhelpfulguides.com/2018/06/26/how-to-install-sendy-on-nginx-with-amazon-ses/)文章上传了sendy在mysite.com/public/sendy上的信息,并且添加了服务器块。
我正在访问
mysite.com/sendy
要安装sendy,我将被带到以下地址
mysite.com/sendy/https//www.mysite.com/sendy/_install.php
,然后显示“未指定输入文件”的屏幕。
服务器块上的代码似乎不正确,或者可能还有其他原因。我应该做哪些更正?非常感谢您的帮助。
服务器块
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/www.mysite.com/before/*;
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name www.mysite.com;
root /home/forge/www.mysite.com/public;
index index.html index.htm index.php;
charset utf-8;
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/www.mysite.com/server/*;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/www.mysite.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
#sendy
location /sendy/l/ {
rewrite ^/sendy/l/([a-zA-Z0-9/]+)$ /sendy/l.php?i=$1 last;
}
location /sendy/t/ {
rewrite ^/sendy/t/([a-zA-Z0-9/]+)$ /sendy/t.php?i=$1 last;
}
location /sendy/w/ {
rewrite ^/sendy/w/([a-zA-Z0-9/]+)$ /sendy/w.php?i=$1 last;
}
location /sendy/unsubscribe/ {
rewrite ^/sendy/unsubscribe/(.*)$ /sendy/unsubscribe.php?i=$1 last;
}
location /sendy/subscribe/ {
rewrite ^/sendy/subscribe/(.*)$ /sendy/subscribe.php?i=$1 last;
}
}
# FORGE CONFIG (DO NOT REMOVE!)
include forge-conf/www.mysite.com/after/*;