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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:32:33+00:00 2026-06-17T13:32:33+00:00

I watched the tutorial here : .. and got inspired to break up my

  • 0

I watched the tutorial here:

.. and got inspired to break up my ever-growing application into distinct modules. The high level structure is as follows (some parts deleted for brevity):

server.js:

var express = require('express')
  , orgs = require('./lib/orgs');

var app = express();

app.configure(function () {
  app.disable('x-powered-by');
  app.use(orgs);
});

http.createServer(app).listen(app.get('port'), function () {
    console.log("Express server listening on port " + app.get('port'));
});

lib/orgs/index.js

var express = require("express")
  , app = module.exports = express()

It works great. However, I have a small problem which may lead to bigger problems going forward. When I structure my app this way (e.g. having express ‘submodules’), the x-powered-by is not disabled, which leads me to believe that all app config stuff is not read as well. I have tried to place the disable message before and after calling the orgs submodule.

Can someone please help me understand this? Thanks

  • 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-17T13:32:34+00:00Added an answer on June 17, 2026 at 1:32 pm

    This was identified as a bug and has since been fixed here:

    https://github.com/visionmedia/express/commit/fa8eec449bf406cebd7a92d376a098a39a804879

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

Sidebar

Related Questions

It should be easy I know!!! I watched tutorial, searched for approx. 2 hours
I watched this webcast recently, and I got the sense that a lot of
i have watched a site which has taught iphone application using dashcode.it says dashcode
I have looked at the facebook iphone api and watched the tutorial they offer
I've tried to use this tutorial Kaminari endless page and also watched Ryan Bates
I watched video tutorial about pagination in PHP. Author used 4th version of PHP
A few days ago, I watched the video tutorial which explains how to use
I just watched a youtube tutorial called many methods and instances. He made a
I watched this tutorial http://www.youtube.com/watch?&v=jTS7JTud1qQ&t=7m57s and I can get the code to output a
I've watched video tutorial for a little MVC framework(if i can call it framework)

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.