New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not get mountpoint when start. #321

Closed
linnchord opened this Issue Jun 18, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@linnchord

linnchord commented Jun 18, 2013

Today, I update our site uwsgi server to 1.9.12, then got
mountpoint already configured. skip.
log in every request.

Because the server can not get the right mountpoint from nginx conf SERVER_NAME

(mountpoint='') ready in 0 seconds on interpreter 0x7f82a8c09b30 pid: 47864 (default app) 

I check the doc of config option "vhost"
http://uwsgi-docs.readthedocs.org/en/latest/Options.html#vhost

It's still there.

Why I can not get the right param?

I try multiple version of uwsgi 1.9+, 1.9.12~1.9.7 get nothing, 1.9.5 make the host:port string to be mountpoint.

mountpoint='127.0.0.1:8280|'

That's ok to run, but not elegant.

How I can make the right thing?

my nginx conf

server{
    listen 8000;
    charset utf-8;
    server_name localhost 127.0.0.1;
    root /Volumes/Home/linnchord/www/test;

    location / {
    include uwsgi_params;
        uwsgi_pass unix:/var/run/uwsgi/socket;
        uwsgi_param UWSGI_CHDIR /Volumes/Home/linnchord/www/test;
        uwsgi_param UWSGI_SCRIPT test;
        uwsgi_param SERVER_NAME test;
    }
}

server{
    listen 8280;
    charset utf-8;
    server_name localhost 127.0.0.1;
    root /Volumes/Home/linnchord/www/gift/giftpi_web;

    location / {
    include uwsgi_params;
        uwsgi_pass unix:/var/run/uwsgi/socket;
        uwsgi_param UWSGI_CHDIR /Volumes/Home/linnchord/www/gift/giftpi_web;
        uwsgi_param UWSGI_SCRIPT giftpi;
        uwsgi_param SERVER_NAME giftpi;
    }
}

uwsgi.yaml

uwsgi:
    socket: /var/run/uwsgi/socket
    master: 1
    workers: 4
    logdate: 1
    chmod-socket: 666
    limit-as: 256
    harakiri: 60
    max-requests: 500
    touch-reload: /var/tmp/uwsgi/reload.uwsgi
    vhost: 1
    daemonize: /var/log/uwsgi/uwsgi.log
    home: /Volumes/Home/linnchord/pyenv/my/
    disable-logging: 1
    py-auto-reload: 1
    callable: app

env

nginx 1.4.1 -> 1.2
mac + brew 
ubuntu(online server)

THANKS!

@ghost ghost assigned unbit Jun 19, 2013

@unbit

This comment has been minimized.

Show comment
Hide comment
@unbit

unbit Jun 19, 2013

Owner

It looks like the last working release is 1.9.5 as the right mountpoint is SERVER_NAME+pipe

I will investigate on it

Owner

unbit commented Jun 19, 2013

It looks like the last working release is 1.9.5 as the right mountpoint is SERVER_NAME+pipe

I will investigate on it

@unbit unbit closed this in 88e67a7 Jun 20, 2013

@unbit

This comment has been minimized.

Show comment
Hide comment
@unbit

unbit Jun 20, 2013

Owner

now the UWSGI_APPID variable is added to each request to allow easier debug of virtualhosting mode

Owner

unbit commented Jun 20, 2013

now the UWSGI_APPID variable is added to each request to allow easier debug of virtualhosting mode

@linnchord

This comment has been minimized.

Show comment
Hide comment
@linnchord

linnchord Jun 20, 2013

That's good! Thanks!

linnchord@gmail.com

在 2013年6月20日星期四,下午2:59,unbit 写道:

now the UWSGI_APPID variable is added to each request to allow easier debug of virtualhosting mode


Reply to this email directly or view it on GitHub (#321 (comment)).

linnchord commented Jun 20, 2013

That's good! Thanks!

linnchord@gmail.com

在 2013年6月20日星期四,下午2:59,unbit 写道:

now the UWSGI_APPID variable is added to each request to allow easier debug of virtualhosting mode


Reply to this email directly or view it on GitHub (#321 (comment)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment