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 801495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:27:00+00:00 2026-05-14T23:27:00+00:00

I followed the directions on how to create web applications using Go, and I

  • 0

I followed the directions on how to create web applications using Go, and I was able to get an application working great.

One thing I am confused about though is, when you run the application (./8.out), the terminal will sit there and listen on port 8080 until somebody accesses a page.

Does the terminal need to stay up all of the time to run the web application? Does the application act like apache? Does apache need to be run next to this app? Setting this up on a server environment seems very confusing to me right now because I dont understand what the best way to do this is.

EDITED
Thanks for the replies. So if the Go app essentially acts like apache, is there a premade Go server app that has the verboseness of apache?

  • 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-05-14T23:27:00+00:00Added an answer on May 14, 2026 at 11:27 pm

    Does the terminal need to stay up all of the time to run the web application?

    If you run it normally from a terminal, then yes. Better options are to run it in the background by adding a “&” to the end of the command line (okay), start it from init (better), or use a process monitor like supervise (best).

    Does the application act like apache?

    Essentially, yes. It listens for HTTP requests and responds to them.

    Does apache need to be run next to this app?

    No, the Go application can handle the requests by itself. Some people run apache or some other server on the front end (listening to port 80) and forward requests to their application (listening on port 8080 or some other port) using mod_proxy.

    One advantage to doing that are that you can run several different application servers in their own process. For example, you could use Ruby on Rails for the main site, and handle API requests with a Go program.

    Another advantage is that your program doesn’t need to be started as root to listen to port 80. You can just run as a normal user without worrying about dropping privileges after you open the connection.

    Is there a premade Go server app that has the verboseness of apache?

    As far as I know, there are no go servers that would compare to Apache. Go is new enough that it will probably be awhile for something like that.

    There are some frameworks that makes it easier to write web applications using the built-in HTTP server though. The only one I’m familiar with is web.go.

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

Sidebar

Related Questions

I've followed the directions here: Using FastCGI to Host PHP Applications on IIS 7
I followed the directions in this post: how can we integrate jquery autocomplete using
Followed this question about delayed_job and monit Its working on my development machine. But
I followed the directions in Railscast #17 HABTM Checkboxes (revised) to get this code
I'm not getting cached results using the ASIHTTPRequest Cache functionality. I followed the directions
I'm trying to get a Django app running with Lighttpd. I followed the directions
Followed directions in Using JSLint in Notepad++ . Using JavaScript Lint (not JSLint). I
I followed the directions in the Membership Providers document provided by Sitecore, but I
I've followed 3DBuzz's XNA AI tutorial and it uses vectors to calculate object directions.
I followed the explanation on the sIFR wiki, but can't seem to get accented

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.