Skip to content
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

Nginx reverse proxy issue #124

Closed
KingPin opened this issue Aug 24, 2011 · 12 comments
Closed

Nginx reverse proxy issue #124

KingPin opened this issue Aug 24, 2011 · 12 comments
Assignees

Comments

@KingPin
Copy link

KingPin commented Aug 24, 2011

Im testing etherpad-lite out on

  • ubuntu 11.04
  • node 0.4.11
  • npm 1.0.26
  • socket.io 0.7.9.

When I connect to etherpad-lite using the direct port everything works fine. but when I connect via nginx the page has no formatting, no images work and the system breaks down completely. an example can be seen at : http://pad.kpsn.org/p/KPsN. http://pad.kpsn.org/ by itself works perfectly, no css isuees and the page looks fine, its when i goto the individual pad that the issues creep up. my nginx config is below. I noticed the socket.io bug mentioned in the wiki but the pull seems to have been merged into the master and 0.7.9 came out after that merge.

server {
    server_name pad.kpsn.org;
    access_log /home/code/logs/pad.kpsn.org.access.log;
    error_log /home/code/logs/pad.kpsn.org.error.log;

    location ~ /\.ht {    deny  all;    }

    location / {
        proxy_pass             http://127.0.0.1:9001/;
        proxy_set_header       Host $host;
        proxy_buffering off;
    }
}

thank you for any help.

@Pita
Copy link
Contributor

Pita commented Aug 24, 2011

Is this your complete nginx config?

the problem is just that the static files are 404ing http://pad.kpsn.org/static/custom/pad.css

@ghost ghost assigned Pita Aug 24, 2011
@JohnMcLear
Copy link
Member

Try comment out the .ht bit and retry.

@KingPin
Copy link
Author

KingPin commented Aug 24, 2011

@Pita thats the complete config for this Vhost

@johnyma22 .ht bit shouldn't be the issue as .htaccess files aren't read either way, but removed, same issue.

@KingPin KingPin closed this as completed Aug 24, 2011
@KingPin KingPin reopened this Aug 24, 2011
@KingPin
Copy link
Author

KingPin commented Aug 24, 2011

maybe some rewrite rules are needed for the pads themselves?

  • i truly hate the goddamn comment and close button.....

@KingPin KingPin closed this as completed Aug 24, 2011
@KingPin KingPin reopened this Aug 24, 2011
@JohnMcLear
Copy link
Member

@KindPin Do you have any other config files being loaded by nginx? IE is default still in sites-enabled ?

@KingPin
Copy link
Author

KingPin commented Aug 25, 2011

@johnyma22 negative just the mime types etc. there are other vhosts but none interfere with this as far as I see.

@KingPin KingPin closed this as completed Aug 25, 2011
@KingPin KingPin reopened this Aug 25, 2011
@JohnMcLear
Copy link
Member

We're pretty sure its an nginx config issue, gonna try replicate in an hour or so

@KingPin
Copy link
Author

KingPin commented Aug 25, 2011

thank you.
ftr : nginx version: nginx/1.0.5 from ubuntu natty 11.04 repo

@JohnMcLear
Copy link
Member

I just tested this config and it's fine. I moved default config out of the sites-enabled.

Try move default config out of sites-enabled then add listen 80; to your ep-lite nginx config.

Let me know

@JohnMcLear
Copy link
Member

KingPin, did Pita get in touch? If not ping me and I take a look with you

@ghost ghost assigned JohnMcLear Sep 1, 2011
@KingPin
Copy link
Author

KingPin commented Sep 4, 2011

Hi @johnyma22 apologies on delayed response, classes started a week or so ago so have been busy. im not sure why or how but a clean checkout of the repo fixed it all for me as far as I see. thank you for your time :)

@KingPin KingPin closed this as completed Sep 4, 2011
@Pita
Copy link
Contributor

Pita commented Sep 14, 2011

is this issue still active?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants