cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable Ngnix_configuration_file for Nginx vps server

How to enable Ngnix_configuration_file for Nginx vps server

Hi Guys,

 

I'm new with Ngnix and Magento, I have installed Magento 2 on Ngnix inmotion VPS server. 

 

Now the problem is that the the style is not working I only get plain text and out of position images. 

 

I was wondering how can I activate the Ngnix Configuration file, as I assume it needs Ngnix configuration file.

 

Thanks

1 REPLY

Re: How to enable Ngnix_configuration_file for Nginx vps server

Hi

 

Try to run static content deploy.

 

run this command from bin directory:

magento setup:static-content:deploy

 

More information about this:

http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html

 

Best regards,