NGINX configuration for wordpress into laravel app

2019-08-18 23:55发布

问题:

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:

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