Going through the magento devdocs on setting up magento 2 enterprise.
Ubuntu 16.04 PHP 7.1
https://devdocs.magento.com/guides/v2.2/install-gde/prereq/nginx.html
This is my issue I have worked through all the processes and i went to my site localhost/magento and i get a 403 permissions error.
My base url i set up in magento was http://localhost/magento
So in my magento in the sites-available/magento should server_name http://localhost/magento ? or should it just be magento or just localhost
When i run nginx -t i get this
nginx: [warn] server name "http://localhost/magento" has suspicious symbols in /etc/nginx/sites-enabled/magento:8
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
So is the warning what is causing my site to 403?
I appreciate your help, i have been looking all over for fixes but stuff on git, here, and magento forums rent fixing my issue.
My guess is everything has to do with permissions which per the devdocs i set up correctly. This is the permission for the magento folder inside my var/www/html
drwxr-xr-x 14 root www-data 4096 Aug 24 10:58 magento is that correct ?
Thanks
Best Answer
Solved. Ended up being the host name, and then not doing setup:di:compile followed by the static-content:deploy