add nginx
diff --git a/.htaccess b/.htaccess
index d986b46..c916b84 100755
--- a/.htaccess
+++ b/.htaccess
@@ -6,7 +6,7 @@
 
 	# HIDE /theme DIRECTORY
 	IndexIgnore .htaccess /theme favicon.ico *.swp *.swo 404.html
-	ErrorDocument 404 /404.html
+	ErrorDocument 404 /theme/404.html
 
 #
 # GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY)
@@ -20,41 +20,41 @@
 # AddIcon /share/theme/icons/blank.png ^^BLANKICON^^
 #
 
-	AddIcon /theme/icons/default.png ^^BLANKICON^^
-	AddIcon /theme/icons/folder.png ^^DIRECTORY^^
-	AddIcon /theme/icons/folder-home.png ..
+	AddIcon /.icons/default.png ^^BLANKICON^^
+	AddIcon /.icons/folder.png ^^DIRECTORY^^
+	AddIcon /.icons/folder-home.png ..
 
 #
 # EXTENSION SPECIFIC ICONS
 #
-	
-	AddIcon /theme/icons/audio.png .aif .iff .m3u .m4a .mid .mp3 .mpa .ra
-	AddIcon /theme/icons/wav.png .wav .wma
-	AddIcon /theme/icons/c.png .c
-	AddIcon /theme/icons/css.png .css
-	AddIcon /theme/icons/word.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
-	AddIcon /theme/icons/svg.png .svg
-	AddIcon /theme/icons/illustrator.png .ai .eps
-	AddIcon /theme/icons/gif.png .gif
-	AddIcon /theme/icons/html.png .html .xhtml .shtml .htm .liquid .md .rb
-	AddIcon /theme/icons/ico.png .ico
-	AddIcon /theme/icons/java.png .jar
-	AddIcon /theme/icons/jpg.png .jpg .jpeg
-	AddIcon /theme/icons/js.png .js .json 
-	AddIcon /theme/icons/torrent.png .pkg .dmg .rar
-	AddIcon /theme/icons/acrobat.png .pdf
-	AddIcon /theme/icons/php.png .php
-	AddIcon /theme/icons/png.png .png .tiff
-	AddIcon /theme/icons/photoshop.png .ps .psd
-	AddIcon /theme/icons/rss.png .rss
-	AddIcon /theme/icons/sql.png .sql
-	AddIcon /theme/icons/otf.png	.otf
-	AddIcon /theme/icons/ttf.png .ttf .woff .eot
-	AddIcon /theme/icons/txt.png .txt
-	AddIcon /theme/icons/video.png .asf .asx .avi .flv .mov .mp4 .mpg .rm .srt .swf .vob .wmv
-	AddIcon /theme/icons/excel.png .xml .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv 
-	AddIcon /theme/icons/zip.png .zip .bin
-	DefaultIcon /theme/icons/default.png
+
+	AddIcon /.icons/audio-x-mpeg.png .aif .iff .m3u .m4a .mid .mp3 .mpa .ra
+	AddIcon /.icons/audio-x-wav.png .wav .wma
+	AddIcon /.icons/text-x-c.png .c
+	AddIcon /.icons/text-css.png .css
+	AddIcon /.icons/application-msword.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
+	AddIcon /.icons/image-svg.png .svg
+	AddIcon /.icons/illustrator.png .ai .eps
+	AddIcon /.icons/image-gif.png .gif
+	AddIcon /.icons/text-html.png .html .xhtml .shtml .htm .liquid .md .rb
+	AddIcon /.icons/image-x-ico.png .ico
+	AddIcon /.icons/application-x-jar.png .jar
+	AddIcon /.icons/image-jpg.png .jpg .jpeg
+	AddIcon /.icons/text-x-javascript.png .js .json
+	AddIcon /.icons/application-x-bittorrent.png .pkg .dmg .rar
+	AddIcon /.icons/application-pdf.png .pdf
+	AddIcon /.icons/application-x-php.png .php
+	AddIcon /.icons/image-png.png .png .tiff
+	AddIcon /.icons/image-x-psd.png .ps .psd
+	AddIcon /.icons/application-rss+xml.png .rss
+	AddIcon /.icons/text-x-sql.png .sql
+	AddIcon /.icons/otf.png	.otf
+	AddIcon /.icons/ttf.png .ttf .woff .eot
+	AddIcon /.icons/text-plain.png .txt
+	AddIcon /.icons/video-x-generic.png .asf .asx .avi .flv .mov .mp4 .mpg .rm .srt .swf .vob .wmv
+	AddIcon /.icons/application-vnd.ms-excel.png .xml .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv
+	AddIcon /.icons/application-x-zip.png .zip .bin
+	DefaultIcon /.icons/default.png
 
 #
 # THEME FILES
@@ -63,8 +63,8 @@
 	HeaderName /theme/header.html
 	ReadmeName /theme/footer.html
 	IndexStyleSheet "/theme/style.css"
-	
-	
+
+
 	RewriteEngine on
 	RewriteCond %{REQUEST_FILENAME} !-d
 	RewriteCond %{REQUEST_FILENAME}\.html -f
diff --git a/theme/icons/after effects.png b/.icons/after effects.png
similarity index 100%
rename from theme/icons/after effects.png
rename to .icons/after effects.png
Binary files differ
diff --git a/theme/icons/word.png b/.icons/application-msword.png
similarity index 100%
rename from theme/icons/word.png
rename to .icons/application-msword.png
Binary files differ
diff --git a/theme/icons/acrobat.png b/.icons/application-pdf.png
similarity index 100%
rename from theme/icons/acrobat.png
rename to .icons/application-pdf.png
Binary files differ
diff --git a/theme/icons/excel.png b/.icons/application-vnd.ms-excel.png
similarity index 100%
rename from theme/icons/excel.png
rename to .icons/application-vnd.ms-excel.png
Binary files differ
diff --git a/theme/icons/powerpoint.png b/.icons/application-vnd.ms-powerpoint.png
similarity index 100%
rename from theme/icons/powerpoint.png
rename to .icons/application-vnd.ms-powerpoint.png
Binary files differ
diff --git a/theme/icons/torrent.png b/.icons/application-x-bittorrent.png
similarity index 100%
rename from theme/icons/torrent.png
rename to .icons/application-x-bittorrent.png
Binary files differ
diff --git a/theme/icons/flash.png b/.icons/application-x-flash-video.png
similarity index 100%
rename from theme/icons/flash.png
rename to .icons/application-x-flash-video.png
Binary files differ
diff --git a/theme/icons/zip.png b/.icons/application-x-gzip.png
similarity index 100%
copy from theme/icons/zip.png
copy to .icons/application-x-gzip.png
Binary files differ
diff --git a/theme/icons/php.png b/.icons/application-x-php.png
similarity index 100%
rename from theme/icons/php.png
rename to .icons/application-x-php.png
Binary files differ
diff --git a/theme/icons/torrent.png b/.icons/application-x-rar.png
similarity index 100%
copy from theme/icons/torrent.png
copy to .icons/application-x-rar.png
Binary files differ
diff --git a/theme/icons/zip.png b/.icons/application-x-tar.png
similarity index 100%
copy from theme/icons/zip.png
copy to .icons/application-x-tar.png
Binary files differ
diff --git a/theme/icons/zip.png b/.icons/application-x-zip.png
similarity index 100%
rename from theme/icons/zip.png
rename to .icons/application-x-zip.png
Binary files differ
diff --git a/theme/icons/audio.png b/.icons/audio-x-mp3-playlist.png
similarity index 100%
copy from theme/icons/audio.png
copy to .icons/audio-x-mp3-playlist.png
Binary files differ
diff --git a/theme/icons/audio.png b/.icons/audio-x-mpeg.png
similarity index 100%
rename from theme/icons/audio.png
rename to .icons/audio-x-mpeg.png
Binary files differ
diff --git a/theme/icons/audio.png b/.icons/audio-x-ms-wma.png
similarity index 100%
copy from theme/icons/audio.png
copy to .icons/audio-x-ms-wma.png
Binary files differ
diff --git a/theme/icons/audio.png b/.icons/audio-x-vorbis+ogg.png
similarity index 100%
copy from theme/icons/audio.png
copy to .icons/audio-x-vorbis+ogg.png
Binary files differ
diff --git a/theme/icons/wav.png b/.icons/audio-x-wav.png
similarity index 100%
rename from theme/icons/wav.png
rename to .icons/audio-x-wav.png
Binary files differ
diff --git a/theme/icons/audition.png b/.icons/audition.png
similarity index 100%
rename from theme/icons/audition.png
rename to .icons/audition.png
Binary files differ
diff --git a/theme/icons/default.png b/.icons/default.png
similarity index 100%
rename from theme/icons/default.png
rename to .icons/default.png
Binary files differ
diff --git a/theme/icons/dreamweaver.png b/.icons/dreamweaver.png
similarity index 100%
rename from theme/icons/dreamweaver.png
rename to .icons/dreamweaver.png
Binary files differ
diff --git a/theme/icons/fireworks.png b/.icons/fireworks.png
similarity index 100%
rename from theme/icons/fireworks.png
rename to .icons/fireworks.png
Binary files differ
diff --git a/theme/icons/folder-home.png b/.icons/folder-home.png
similarity index 100%
rename from theme/icons/folder-home.png
rename to .icons/folder-home.png
Binary files differ
diff --git a/theme/icons/folder.png b/.icons/folder.png
similarity index 100%
rename from theme/icons/folder.png
rename to .icons/folder.png
Binary files differ
diff --git a/theme/icons/illustrator.png b/.icons/illustrator.png
similarity index 100%
rename from theme/icons/illustrator.png
rename to .icons/illustrator.png
Binary files differ
diff --git a/theme/icons/gif.png b/.icons/image-gif.png
similarity index 100%
rename from theme/icons/gif.png
rename to .icons/image-gif.png
Binary files differ
diff --git a/theme/icons/jpg.png b/.icons/image-jpeg.png
similarity index 100%
copy from theme/icons/jpg.png
copy to .icons/image-jpeg.png
Binary files differ
diff --git a/theme/icons/jpg.png b/.icons/image-jpg.png
similarity index 100%
rename from theme/icons/jpg.png
rename to .icons/image-jpg.png
Binary files differ
diff --git a/theme/icons/svg.png b/.icons/image-svg.png
similarity index 100%
rename from theme/icons/svg.png
rename to .icons/image-svg.png
Binary files differ
diff --git a/theme/icons/photoshop.png b/.icons/image-x-psd.png
similarity index 100%
rename from theme/icons/photoshop.png
rename to .icons/image-x-psd.png
Binary files differ
diff --git a/theme/icons/indesign.png b/.icons/indesign.png
similarity index 100%
rename from theme/icons/indesign.png
rename to .icons/indesign.png
Binary files differ
diff --git a/theme/icons/otf.png b/.icons/otf.png
similarity index 100%
rename from theme/icons/otf.png
rename to .icons/otf.png
Binary files differ
diff --git a/theme/icons/png.png b/.icons/png.png
similarity index 100%
rename from theme/icons/png.png
rename to .icons/png.png
Binary files differ
diff --git a/theme/icons/premiere pro.png b/.icons/premiere pro.png
similarity index 100%
rename from theme/icons/premiere pro.png
rename to .icons/premiere pro.png
Binary files differ
diff --git a/theme/template.psd b/.icons/template.psd
similarity index 100%
rename from theme/template.psd
rename to .icons/template.psd
Binary files differ
diff --git a/theme/icons/css.png b/.icons/text-css.png
similarity index 100%
rename from theme/icons/css.png
rename to .icons/text-css.png
Binary files differ
diff --git a/theme/icons/html.png b/.icons/text-html.png
similarity index 100%
rename from theme/icons/html.png
rename to .icons/text-html.png
Binary files differ
diff --git a/theme/icons/txt.png b/.icons/text-plain.png
similarity index 100%
copy from theme/icons/txt.png
copy to .icons/text-plain.png
Binary files differ
diff --git a/theme/icons/txt.png b/.icons/text-richtext.png
similarity index 100%
rename from theme/icons/txt.png
rename to .icons/text-richtext.png
Binary files differ
diff --git a/theme/icons/js.png b/.icons/text-x-javascript.png
similarity index 100%
rename from theme/icons/js.png
rename to .icons/text-x-javascript.png
Binary files differ
diff --git a/theme/icons/sql.png b/.icons/text-xsql.png
similarity index 100%
rename from theme/icons/sql.png
rename to .icons/text-xsql.png
Binary files differ
diff --git a/theme/icons/ttf.png b/.icons/ttf.png
similarity index 100%
rename from theme/icons/ttf.png
rename to .icons/ttf.png
Binary files differ
diff --git a/theme/icons/video.png b/.icons/video-x-generic.png
similarity index 100%
rename from theme/icons/video.png
rename to .icons/video-x-generic.png
Binary files differ
diff --git a/README.md b/README.md
index e708eb4..c59d1a7 100755
--- a/README.md
+++ b/README.md
@@ -1,59 +1,62 @@
 # Directory Theme
-A simple, customizable theme for your Apache directory listing.
-Be sure you have ```mod_autoindex``` loaded. Here is a demo of what the result looks like: [gif library](http://gifs.jessfraz.com).
+A simple, customizable theme for your **Apache** or **nginx** directory listing.
+Here is a demo of what the result looks like: [gif library](http://gifs.jessfraz.com).
 
-## Features
+**Features**
 
 - search the directory and display results, as the user inputs the search term
 - custom styling of the default directory indexing
 - ```.html``` files are linked to without the file extension (ex. http://localhost/example.html -> http://localhost/example)
-
-	- if you would rather like this to be removing the file extention for ```.php``` files replace these lines 
-
-		```
-		RewriteCond %{REQUEST_FILENAME}\.html -f
-		RewriteRule ^(.*)$ $1.html
-		```
-
-		in [.htaccess](https://github.com/jfrazelle/directory-theme/blob/master/.htaccess) with the following
-
-		```
-		RewriteCond %{REQUEST_FILENAME}\.php -f
-		RewriteRule ^(.*)$ $1.php
-		```
 - changes "Last modified" column to display time as time since (ex. 2 minutes ago, 4 days ago, etc)
-- ```htaccess-txt.txt``` is included because ```.htaccess``` might be hidden by your computer after downloading, copy the contents into a file you name ```.htaccess``` if this is the case
 
-## Installation
+**Apache Features**
 
-1. Download.
-2. Add the contents of directory-theme to the ```root``` folder of your localhost (ex. Sites)
-3. Check to be sure you have a ```.htaccess``` file in the root and that its contents are the same as [.htaccess](https://github.com/jfrazelle/directory-theme/blob/master/.htaccess)
-	- you may need to show hidden files by typing the following into terminal:
-		
-		```
-		defaults write com.apple.Finder AppleShowAllFiles TRUE
-		```
-		
-		-then restart finder by typing
-		
-		```
-		killall Finder
-		```
-3. View your localhost in your favorite browser, *cough* **Chrome** *cough*
+## Apache Setup
+Be sure you have ```mod_autoindex``` loaded on your server.
 
-## Configurations
+```bash
+$ cd into_vhost_root_directory_you_want_to_be_prettified/
+$ git clone git@github.com:jfrazelle/directory-theme.git
 
-- Change any styles in [style.css](https://github.com/jfrazelle/directory-theme/blob/master/theme/style.css)
-- Add any elements or customize the header:  [header.html](https://github.com/jfrazelle/directory-theme/blob/master/theme/header.html)
-- Add any elements or customize the footer:  [footer.html](https://github.com/jfrazelle/directory-theme/blob/master/theme/footer.html)
-- Ignore certain files or directorys by customizing [.htaccess](https://github.com/jfrazelle/directory-theme/blob/master/.htaccess) by adding to the line ```IndexIgnore .htaccess /theme favicon.ico *.tmproj 404.html htaccess```
-- Swap out, add, or custumize any icon by changing [.htaccess](https://github.com/jfrazelle/directory-theme/blob/master/.htaccess) and editing the lines starting with ```AddIcon``` and changing the file reference, ```/theme/icons/gif.png``` or file extension, ```.gif```, result should look like this ```AddIcon /theme/icons/gif.png .gif```
+# move the directory contents to the parent directory
+$ sudo mv directory-theme/* /
 
+# remove nginx items
+$ rm -rf directory-theme.conf
+```
+
+Then, view your virtual host in your favorite browser, *cough* **Chrome** *cough*.
+
+## nginx Setup
+Be sure you have [```ngx_http_addition_module```](http://nginx.org/en/docs/http/ngx_http_addition_module.html) loaded on your server.
+
+```bash
+$ cd into_vhost_root_directory_you_want_to_be_prettified/
+$ git clone git@github.com:jfrazelle/directory-theme.git
+
+# move the directory contents to the parent directory
+$ sudo mv directory-theme/* /
+
+# remove apache items
+$ rm -rf .htaccess
+
+# rename directory-theme.conf to your site config name ex. lab.jessfraz.com
+# at the same time moving it to the sites-available folder
+$ sudo mv directory-theme.conf /etc/nginx/sites-available/lab.jessfraz.com
+
+# edit the relevant fields for your setup
+# these are server_name and root
+$ sudo vim /etc/nginx/sites-available/lab.jessfraz.com
+
+# activate the host by creating a symbolic link between
+# the sites-available directory and the sites-enabled directory
+$ sudo ln -s /etc/nginx/sites-available/lab.jessfraz.com /etc/nginx/sites-enabled/lab.jessfraz.com
+```
+
+Then, view your virtual host in your favorite browser, *cough* **Chrome** *cough*.
 
 ### Credits
-
 Based off [apaxy](https://github.com/AdamWhitcroft/Apaxy) by Adam Whitcroft
 
 
-[![Analytics](https://ga-beacon.appspot.com/UA-29404280-16/directory-theme/README.md)](https://github.com/jfrazelle/directory-theme)
+[![Analytics](https://ga-beacon.appspot.com/UA-29404280-16/directory-theme/README.md)](https://github.com/jfrazelle/directory-theme)
\ No newline at end of file
diff --git a/directory-theme.conf b/directory-theme.conf
new file mode 100644
index 0000000..aaef14e
--- /dev/null
+++ b/directory-theme.conf
@@ -0,0 +1,29 @@
+server {
+    # listen 80 deferred; # for Linux
+    # listen 80 accept_filter=httpready; # for FreeBSD
+    listen 80;
+
+    # The host name to respond to
+    server_name lab.jessfraz.com;
+
+    # Path for static files
+    root /var/www/lab.jessfraz.com/public;
+
+    # turn on indexing
+    autoindex on;
+
+    #Specify a charset
+    charset utf-8;
+
+    add_before_body /theme/header.html;
+    add_after_body /theme/footer.html;
+
+    # Custom 404 page
+    error_page 404 /theme/404.html;
+
+    # let non-html ending links point to the html file
+    try_files $uri.html $uri $uri/ =404;
+
+    # Include the basic config set
+    include /etc/nginx/extras/basic.conf;
+}
\ No newline at end of file
diff --git a/htaccess-txt.txt b/htaccess-txt.txt
deleted file mode 100755
index a5a18a3..0000000
--- a/htaccess-txt.txt
+++ /dev/null
@@ -1,75 +0,0 @@
-	# ENABLE INDEXING
-	Options +Indexes
-
-	# INDEX OPTIONS
-	IndexOptions +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=* +IconsAreLinks
-
-	# HIDE /theme DIRECTORY
-	IndexIgnore .htaccess /theme favicon.ico *.tmproj 404.html htaccess
-	ErrorDocument 404 /404.html
-
-#
-# GENERAL ICONS (BLANK, DIRECTORY, PARENT DIRECTORY)
-#
-
-#
-# Replace {FOLDERNAME} with your directory URL eg:
-# If your directory is http://mywebsite.com/share/
-# you would change to:
-#
-# AddIcon /share/theme/icons/blank.png ^^BLANKICON^^
-#
-
-	AddIcon /theme/icons/blank.png ^^BLANKICON^^
-	AddIcon /theme/icons/folder.png ^^DIRECTORY^^
-	AddIcon /theme/icons/folder-home.png ..
-
-#
-# EXTENSION SPECIFIC ICONS
-#
-	
-	AddIcon /theme/icons/audio.png .aif .iff .m3u .m4a .mid .mp3 .mpa .ra .wav .wma
-	AddIcon /theme/icons/bin.png .bin
-	AddIcon /theme/icons/c.png .c
-	AddIcon /theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv 
-	AddIcon /theme/icons/css.png .css
-	AddIcon /theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps .liquid
-	AddIcon /theme/icons/draw.png .svg
-	AddIcon /theme/icons/eps.png .ai .eps
-	AddIcon /theme/icons/gif.png .gif
-	AddIcon /theme/icons/html.png .html .xhtml .shtml .htm
-	AddIcon /theme/icons/ico.png .ico
-	AddIcon /theme/icons/java.png .jar
-	AddIcon /theme/icons/jpg.png .jpg .jpeg
-	AddIcon /theme/icons/js.png .js .json
-	AddIcon /theme/icons/markdown.png .md
-	AddIcon /theme/icons/package.png .pkg .dmg 
-	AddIcon /theme/icons/pdf.png .pdf
-	AddIcon /theme/icons/php.png .php
-	AddIcon /theme/icons/png.png .png
-	AddIcon /theme/icons/ps.png .ps
-	AddIcon /theme/icons/psd.png .psd
-	AddIcon /theme/icons/rar.png .rar
-	AddIcon /theme/icons/rb.png .rb
-	AddIcon /theme/icons/rss.png .rss
-	AddIcon /theme/icons/sql.png .sql
-	AddIcon /theme/icons/tiff.png .tiff
-	AddIcon /theme/icons/text.png .txt
-	AddIcon /theme/icons/video.png .asf .asx .avi .flv .mov .mp4 .mpg .rm .srt .swf .vob .wmv
-	AddIcon /theme/icons/xml.png .xml
-	AddIcon /theme/icons/zip.png .zip
-	DefaultIcon /theme/icons/default.png
-
-#
-# THEME FILES
-#
-
-	HeaderName /theme/header.html
-	ReadmeName /theme/footer.html
-	IndexStyleSheet "/theme/style.css"
-	
-	
-	RewriteEngine on
-	RewriteCond %{REQUEST_FILENAME} !-d
-	RewriteCond %{REQUEST_FILENAME}\.html -f
-	RewriteRule ^(.*)$ $1.html
\ No newline at end of file
diff --git a/404.html b/theme/404.html
similarity index 100%
rename from 404.html
rename to theme/404.html
diff --git a/theme/footer.html b/theme/footer.html
index 4628b61..f89af68 100755
--- a/theme/footer.html
+++ b/theme/footer.html
@@ -2,5 +2,4 @@
 <div class="footer">
 	<a href="https://twitter.com/frazelledazzell">@jess</a>
 </div><!--/.footer-->
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
-<script src="/theme/scripts.js"></script>
\ No newline at end of file
+<script src="/public/scripts.js"></script>
\ No newline at end of file