Hi,
I am getting this 404 error with log statements as "/etc/nginx/sites-enabled/public/muser/index.html"
whereas my actual location is root "/mnt/f/projects/usermanagement/;"
I
configured the same in sites-enabled and available and also in
nginx.conf files where should i give my root application path !
Please
suggest
my sites-enabled config is
server {
listen 80;
server_name yourserver.com;
# Tell Nginx and Passenger where your app's 'public' directory is
root /mnt/f/projects/usermanagement;
# Turn on Passenger
passenger_enabled on;
# Tell Passenger that your app is a Node.js app
passenger_app_type node;
passenger_startup_file app.js;
}
my folder structure is
[ 2016-03-01 18:24:59.2833 3028/7f0d543fb700 age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /mnt/F/rizwan/projects/usermanagement: An error occurred while starting the web application: it did not write a startup response in time.
root /mnt/F/rizwan/projects/usermanagement/public;
#root /usr/share/nginx/html;
# Add index.php to the list if you are using PHP
#index index.html index.htm index.nginx-debian.html;
#server_name example;
#listen 80;
# passenger_enabled on;
server_name example;
# root /mnt/F/rizwan/projects/usermanagement/public;
Hi,
a.after configuration should is it necessary to run "sudo passenger start" or simply
"sudo service nginx restart" will work ?