Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nginx location: all REAL files in path

Status
Not open for further replies.

ThomasJSmart

Programmer
Sep 16, 2002
634
How to set this location in the nginx site config file


2 possible paths:

/en/Content/fileX.xxx
/en/Content/fileY.yyy

/Content/fileX.xxx
/Content/fileY.yyy

both of these paths have files in the root as well as in multiple subdirectories.

fileX.xxx does not exist as a real file, there is a location for it that redirects any requests for non-existant files to a php gile.

fileY.yyy does exist as a real file.


i need a location setting that sets the expire for all REAL files inside the */Content/* path.
It should not affect the php redirect files.

if i just set a wildcard on the Content dir then it breaks the php redirects.

thanks!











site | / blog |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top