# Changed /usr/share/nginx/html/ softlink, now nginx won't serve it @localhost

**URL:** <https://www.ruby-forum.com/t/changed-usr-share-nginx-html-softlink-now-nginx-wont-serve-it-localhost/226597>\
**Category:** NGINX\
**Created:** [December 26, 2012, 10:32am UTC](https://www.ruby-forum.com/t/changed-usr-share-nginx-html-softlink-now-nginx-wont-serve-it-localhost/226597 "2012-12-26T10:32:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kurtosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@Kurtosis](https://www.ruby-forum.com/u/Kurtosis)\
**Post date:** [December 26, 2012, 10:32am UTC](https://www.ruby-forum.com/t/changed-usr-share-nginx-html-softlink-now-nginx-wont-serve-it-localhost/226597/1 "2012-12-26T10:32:36Z")

</div>

Nginx 1.2.4 on Ubuntu 12.04 x64 desktop

I have a pure html site located at:

~/Projects/Clients/ANS/src/MetroBusiness.ans

That is softlinked to nginx’s localhost directory:

/usr/share/nginx/html/dev/MetroBusiness.ans

And I used to view the site at [http://localhost/dev/MetroBusiness.ans](http://localhost/dev/MetroBusiness.ans).

But I recently moved the site source to ~/work:

~/work/clients/ans/src/MetroBusiness.ans

And re-linked it in nginx’s localhost directory:

/usr/share/nginx/html/dev/MetroBusiness.ans

But now I can’t view the site in localhost. It should be the same url,  
but  
now I’m getting:

* * *

## Welcome to nginx! If you see this page, the nginx web server is successfully installed and working.

However, the other soft-linked sites that I didn’t change still work  
fine,  
just the one I changed and re-linked.

Also, it doesn’t show up in the nginx directory listing at  
[http://localhost/dev/](http://localhost/dev/) (with other sites linked in the same way, but not  
recently moved)

Permissions are set to rwxrwxr\_x on the site source directory. I  
restarted  
nginx, even restarted the computer, but no luck.

I’m sure there’s something minor I’m missing, but drawing a blank now.

Any idea why Nginx can’t see this soft link and serve this site anymore?

Posted at Nginx Forum:

> **[Changed /usr/share/nginx/html/ softlink, now nginx won't serve it @localhost](https://forum.nginx.org/read.php?2,234468,234468#msg-234468)**
>
> Nginx 1.2.4 on Ubuntu 12.04 x64 desktop I have a pure html site located at: ~/Projects/Clients/ANS/src/MetroBusiness.ans That is softlinked to nginx's localhost directory: /usr/share/nginx/html/dev/MetroBusiness.ans And I use

---

<div class="post-metadata">

**Author:** ![Kurtosis](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/aeb1de/32.png) [@Kurtosis](https://www.ruby-forum.com/u/Kurtosis)\
**Post date:** [December 26, 2012, 12:56pm UTC](https://www.ruby-forum.com/t/changed-usr-share-nginx-html-softlink-now-nginx-wont-serve-it-localhost/226597/2 "2012-12-26T12:56:18Z")

</div>

On Wed, Dec 26, 2012 at 04:31:52AM -0500, Kurtosis wrote:

Hi there,

> ~/Projects/Clients/ANS/src/MetroBusiness.ans

> ~/work/clients/ans/src/MetroBusiness.ans

The capitalisation there has changed.

Can you see “ls -l” and “ls -lL” of the symlink to confirm that things  
on the filesystem are as they should be?

> But now I can’t view the site in localhost. It should be the same url, but  
> now I’m getting:
> 
> * * *
> 
> ## Welcome to nginx! If you see this page, the nginx web server is successfully installed and working.

What does nginx.conf have, for this server{} and this location{}?

> Any idea why Nginx can’t see this soft link and serve this site anymore?

If the above doesn’t give you a hint, perhaps the error or debug log  
will?

Good luck with it,

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
