用于WordPress的laravel应用程序的NGINX配置 [英] NGINX configuration for wordpress into laravel application
问题描述
I am following this digitalocean link to install wordpress with little modification. I have a laravel application installed and configured there and i followed all steps for directory /var/www/laravel/public/blog/wordpress
(directory I installed wordpress into). Now I need help with configuring /etc/nginx/sites-available/default
, So that i can have wordpress on example.com/blog
. Uptill now I have just came up with
location /blog {
try_files $uri $uri/ /blog/wordpress/index.php?$args;
}
但这给了我403 forbidden
推荐答案
根据我们的聊天对话.如果您想通过https://example.com/blog
According to our chat-conversation. You have to copy all your files and folders from /blog/wordpress
to /blog
if you want your blog to be accessible by https://example.com/blog
这篇关于用于WordPress的laravel应用程序的NGINX配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!