# "prettify" nginx.conf

**URL:** <https://www.ruby-forum.com/t/prettify-nginx-conf/223211>\
**Category:** NGINX\
**Created:** [September 26, 2012, 1:57am UTC](https://www.ruby-forum.com/t/prettify-nginx-conf/223211 "2012-09-26T01:57:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 1:57am UTC](https://www.ruby-forum.com/t/prettify-nginx-conf/223211/1 "2012-09-26T01:57:22Z")

</div>

been making so many changes to my nginx.conf recently, I was wondering  
if  
there’s any tool I can use to automatically “prettify” it with indents  
and  
the like so at least the various location and server blocks stand out at  
a  
glance.

---

<div class="post-metadata">

**Author:** ![Ian\_MSEvans](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/7bcc69/32.png) [@Ian\_MSEvans](https://www.ruby-forum.com/u/Ian_MSEvans)\
**Post date:** [September 26, 2012, 11:05am UTC](https://www.ruby-forum.com/t/prettify-nginx-conf/223211/2 "2012-09-26T11:05:22Z")

</div>

On 26 Set 2012 01h56 CEST, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> been making so many changes to my nginx.conf recently, I was  
> wondering if there’s any tool I can use to automatically “prettify”  
> it with indents and the like so at least the various location and  
> server blocks stand out at a glance.

If you’re into emacs, there’s a 75% functional mode:

> **[GitHub - ajc/nginx-mode: Emacs editing mode for Nginx config files](https://github.com/ajc/nginx-mode)**
>
> Emacs editing mode for Nginx config files

— appa
