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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:58:53+00:00 2026-05-26T04:58:53+00:00

I have intalled nginx on Windows and put an nginx.conf in my http root

  • 0

I have intalled nginx on Windows and put an nginx.conf in my http root directory, but it seems this path is not included, I can include it by including c:/http_default/nginx.conf, but I want nginx to automaticaly include any nginx.conf for current working directory. Example: for http://mydomain.com/test/index.php, I want c:/http_default/test/nginx.conf to be included.

  • 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-26T04:58:54+00:00Added an answer on May 26, 2026 at 4:58 am

    Your best option is to first have standardized directory structure (e.g. c:\www\example.com ). Then in each site directory have a directory for your root and for conf files. Then you’d use this in your main nginx.conf http { } section.

    include c:/www/*/conf/nginx.conf;
    

    Then each site’s nginx.conf will get loaded when you start or issue a reload to nginx. So if you have these two paths for a site, you are set.

    c:\www\example.com\conf\
    c:\www\example.com\htdocs\
    

    Web files go in htdocs and nginx.conf goes in conf. Simple as that.

    I never used nginx on Windows, so I assume its’ conf uses forward slashes like *nix.

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

Sidebar

Related Questions

I'm using the init.d script from this: http://wiki.nginx.org/RedHatNginxInitScript but this script sucks on my
I have a rewrite in my nginx.conf: server { server_name example.com; rewrite ^/(.*) http://www.example.com/$1
I have two paths: /etc/nginx/sites-enabled /opt/nginx/conf/nginx.conf Both contain an .conf file, is it possible
I'm trying to configure Nginx to work with Socket.IO and I have found this
I understand that there's an nginx configuration file at http://www.friendfeed.com But i don't really
I have recently installed Nginx + Thin on my deployment server, but i am
I have installed my windows application that uses TeeChart ActiveX (a COM Component for
I have installed Eclipse Indigo on Ubuntu 11.10, and the marketplace is not showing
I have installed C++SDK that have Qt but when I try compiling a code
I have installed new site in Joomla 1.7 and its working fine, but when

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.