Bug 635776 - Future feature: Nginx default configuration is a bit cumbersome -- proposed new default configuration
Summary: Future feature: Nginx default configuration is a bit cumbersome -- proposed n...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: nginx
Version: 13
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Hinegardner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 677033 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-20 17:03 UTC by Jean Gobin
Modified: 2011-02-13 21:24 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-13 06:15:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jean Gobin 2010-09-20 17:03:50 UTC
Description of problem:

By default, /etc/nginx/nginx.conf on fedora (at least 13), contains a lot of statements. Changing the configuration means deleting almost 90% of the file and creating new ones under /etc/nginx/conf.d.

Version-Release number of selected component (if applicable):

0.85 (on top of my head). If this versionless. 


How reproducible:

Install the package

Steps to Reproduce:
1. Install the package
2. cd /etc/nginx
3. cat nginx.conf
  
Actual results:

lots of lines.

Expected results:

It would be far better if, instead of cramming the whole configuration into /etc/nginx/nginx.conf, the server{} section be replaced with include '/etc/nginx/fedora-default.conf' and have the server{} configuration there. It would make the file way easier to read, and discarding the default configuration would just be a matter of removing the include. In addition, someone interested could use the "fedora-default.conf" as a template for his future instances. 

Additional info:

None. F13 is super-ueber great job.

Comment 1 Jeremy Hinegardner 2010-12-13 06:15:08 UTC
Excellent idea.  I have committed this to rawhide.

Comment 2 Jeremy Hinegardner 2011-02-13 21:24:44 UTC
*** Bug 677033 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.