Skip to content

Commit

Permalink
Merge pull request cakephp#2948 from repher/patch-1
Browse files Browse the repository at this point in the history
added special nginx configuration
  • Loading branch information
markstory committed Jul 12, 2015
2 parents e9c4833 + 257f211 commit a01f8a9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions en/installation/url-rewriting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,22 @@ you will need PHP running as a FastCGI instance.
}
}

If for some exotic reason you cannot change your root diretory and need to run
your project from a subfolder like example.com/subfolder/, you will have to inject
"/webroot" in each request.

::

location ~ ^/(subfolder)/(.*)? {
index index.php;
set $new_uri /$1/webroot/$2;
try_files $new_uri $new_uri/ /$1/index.php?$args;
... php handling ...
}


URL Rewrites on IIS7 (Windows hosts)
====================================

Expand Down

0 comments on commit a01f8a9

Please sign in to comment.