Я пробовал так много разных вещей. Дело в том, что я сейчас:
location ^~ /wordpress {
alias /var/www/example.com/wordpress;
index index.php index.html index.htm;
try_files $uri $uri/ /wordpress/index.php;
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_split_path_info ^(/wordpress)(/.*)$;
fastcgi_param SCRIPT_FILENAME /var/www/example.com/wordpress/index.php;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
В настоящий момент все ресурсы, насколько я могу судить (изображения и т.д.), загружаются правильно. И http://www.example.com/wordpress
загружает wordpress, но страницу, в которой говорится, что "страница не найдена". (Wordpress используется для этого, хотя). Если я попытаюсь использовать любые почтовые URL-адреса, я получаю тот же результат, "страница не найдена". Поэтому я знаю, что проблема заключается в том, что wordpress не получает данные о пути или что-то в этом роде. Другая потенциальная проблема заключается в том, что если я запустил example.com/wp-admin.php
, то он все равно будет работать index.php
.
Какие данные необходимо передать? Что здесь может быть неправильным?