Welcome! Log In Create A New Profile

Advanced

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

December 26, 2012 04:31AM
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.

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/ (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?
SubjectAuthorPosted

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

KurtosisDecember 26, 2012 04:31AM

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

Francis DalyDecember 26, 2012 06:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 52
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready