Monday, 2 September 2013

Linking nginx config with installing

Linking nginx config with installing

I am trying to install nginx with a shell script but it seems like I have
made a mistake:
# INSTALL NGINX
apt-get install nginx
# LINK CONFIGURATION FILE
ln -fs /etc/configuration/nginx/nginx/app.conf /etc/nginx/sites-available/app
# RESTART
service nginx restart
My configuration for my app.conf is as such:
server {
listen 80;
root /home/deploy/project123;
server_name www.project123.com;
location / { try_files $uri @app; }
location @app {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
}
}
My code is in: /home/deploy/project123
When I visit the site I get a 404 as if nothing is running. Can anyone
tell me what I have done wrong please?

No comments:

Post a Comment