# Trying to set-up a local development environment

**URL:** <https://www.ruby-forum.com/t/trying-to-set-up-a-local-development-environment/238649>\
**Category:** NGINX\
**Created:** [January 22, 2014, 10:19am UTC](https://www.ruby-forum.com/t/trying-to-set-up-a-local-development-environment/238649 "2014-01-22T10:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [January 22, 2014, 10:19am UTC](https://www.ruby-forum.com/t/trying-to-set-up-a-local-development-environment/238649/1 "2014-01-22T10:19:56Z")

</div>

I am a complete newbie to the server side of things. My background has  
been installing wamp ([WampServer, la plate-forme de développement Web sous Windows - Apache, MySQL, PHP](http://www.wampserver.com/en/)), dumping files  
into the www folder, and testing via localhost. It all just worked.

Recently I switched to linux (archlinux) and am trying to set-up a  
local development environment. This is my project structure:

www  
├── process.php  
├── css  
│ └── registration.css  
├── images  
│ ├── bg.png  
│ ├── bg\_content.jpg  
│ ├── in\_process.png  
│ ├── in\_use.png  
│ ├── okay.png  
│ └── status.gif  
├── index.html  
├── registration.html  
└── thanks.html

This is my nginx.conf:

user http;  
worker\_processes 1;

events {  
worker\_connections 1024;  
}

http {  
server {  
listen 80;  
server\_name localhost;

```
    location / {
        root /srv/www;
        index index.html;
    }
}

```

}

Now here is where I am stuck and what I think nginx is doing according  
to my nginx.conf.

1. The root directive maps request to localhost/ to the local  
directory /srv/www in the filesystem and serves up index.html

2. But when I access localhost/registration.html, the html file loads  
OK, but the corresponding registration.css fails to take effect. When  
I checked it in chrome inspector, the GET request is getting a 304 Not  
Modified (even in incognito mode) or a 200 OK (from cache)

What am I doing wrong?
