NGINX configuration for wordpress into laravel app

2019-08-18 23:45发布

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; }

but this is giving me 403 forbidden

1条回答
成全新的幸福
2楼-- · 2019-08-19 00:30

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

查看更多
登录 后发表回答