Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8524517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:42:32+00:00 2026-06-11T07:42:32+00:00

I am running a remote server on EC2 with rstudio and was looking to

  • 0

I am running a remote server on EC2 with rstudio and was looking to set up a reverse proxy as indicated in the documentation here using nginx

When I start or restart nginx i get the error message shown below. Obviously, nothing else is running on port 80. I dont have apache or any other webserver installed.

ubuntu@ip-10-4-xxx-xxx:~$ sudo fuser -k 80/tcp ; sudo /etc/init.d/nginx restart
Restarting nginx: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
nginx.

the module I added to ngnix.conf is the recommended snippet:

http {
  server {
    listen 80;

    location / {
      proxy_pass http://localhost:8787;
      proxy_redirect http://localhost:8787/ $scheme://$host/;
    }
  }
}

I did try using 8080 instead of 80 and ngnix starts fine, but doesn’t connect to rstudio. rstudio is meanwhile available on 8787. It feels like i am missing something really simple here. Help please!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:42:33+00:00Added an answer on June 11, 2026 at 7:42 am

    Aww snap.. Just got it after typing up the question in full. The conf file had an include that had to be commented out

    include /etc/nginx/sites-enabled/*;
    

    changed to

    #include /etc/nginx/sites-enabled/*;
    

    Works perfectly now. Somebody @rstudio please update the documentation in the link I showed above

    UPDATE: Please see the response from @DirkEddelbuettel in his comment below. The right way would be to add this code snippet in an appropriate file in the “sites-enabled” directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm debugging an application on a remote server running JBoss using Eclipse. My particular
I'm running a script on a remote server like using this command: ssh root@host
I am running a WPF app with a remote server setup but getting The
I have an app running on port 9100 on a remote server serving http
I need to test a perl script in a remote server. I tried running
We have a java application which run as server running on a remote windows
I'm running django server over SSH connection on a remote interpreter in PyCharm 2.5.2.
we have a local staging server running sql server 2000 and a remote public
I have a flexlm licence manager running on a remote server. Does anyone know
I am debugging PHP site running on remote Apache2 server with xdebug and NetBeans.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.