Also change the root directive in /etc/nginx/sites-enabled/ whichever conf file is here. Make sure you pass the index directive too, so that nginx knows what is the index file for the root directory. You can pass it thus index index.htm index.php; This should be enough to make your setup work :)by droidly - How to...
mydomain.com is running with nginx1.2, php-fpm, apc on an ubuntu server (medium - amazon ec2). I have been tweaking my server for past 6 months, however a problem started occurring since day before yesterday. I am unable to resolve the root for www.mydomain.com, or mydomain.com. It takes 3 minutes to receive a broken page with all the links on the page converted to the local ip (10.x.x.x) Howevby droidly - How to...
Change the document root directive, in nginx.conf or your_site.conf, both of these files are available in the directory where you installed nginx (/etc/nginx in my case) The document root directive may be inserted under the server block as. You can define it thus root /usr/share/nginx/www;by droidly - How to...
![]() |
![]() |
![]() |
![]() |
|