Non-root install of Wordpress in an already running nginx site

Edho Arief edho at myconan.net
Fri Apr 13 03:38:52 UTC 2012


Am 13.04.2012 09:14 schrieb "Ian M. Evans" <ianevans at digitalhit.com>:
>
> On Thu, April 12, 2012 8:20 am, Edho Arief wrote:
> > Sorry, seems like location ^~ /ournewblog/ will also do the job.
>
> Hmm...already encountered one issue:
>

Try

> location ^~ /ournewblog/ {

try_files $uri $uri/ /ournewblog/index.php?q=$uri;

>  location ~ \.php$ {
>    fastcgi_pass 127.0.0.1:10004;
>  }
> }
>
> Just started the install and it duplicates the admin subdirectory links so
> we get:
>
> http://www.example.com/ournewblog/wp-admin/wp-admin/setup-config.php
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120413/3dd37919/attachment-0001.html>


More information about the nginx mailing list