NGINX configuration for wordpress into laravel application

梦想的初衷 提交于 2019-12-12 04:49:37

问题


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



来源:https://stackoverflow.com/questions/45007935/nginx-configuration-for-wordpress-into-laravel-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!