-1

I am new to nginx and I have been hacking up my nginx.conf file to get a site working but still having issues with a few different things. Here is the scope and some problems. #2 below is most important. My nginx.conf file is located at the bottom via pastebin link.

1) my site has vanity urls... domain.com/username (this works)

2) my site also has directories in root. domain.com/red/ but the cannot be viewed because the following comes up... (This is a 404 error, page cannot be found.) I would like domain.com/red/ to just show up

3) I also have a wp blog and it is located here: domain.com/blog/ redirects to www.domain.com/blog/ (It shows up and works but I prefer to not have 'www.' Also can't use seo friendly permalink urls)

Here is my nginx.conf file

4

1 回答 1

1

您需要一个try_files目录声明。

在这里查看更多信息。

我们还需要站点特定的配置文件,除了您的nginx.conf

于 2012-05-31T23:12:47.327 回答