ajsalkeld / Nginx-Server-Block-Generator

A Javascript webpage to generate a server config for Nginx.
MIT License
13 stars 4 forks source link

Add some openish location directives... #5

Open ianhobbs opened 6 years ago

ianhobbs commented 6 years ago

I'm using custom CMS like Runway which relies upon custom location blocks like:

### Match any other request
location / {
try_files $uri $uri/ @runway;
}

### Perch Runway
location @runway {
rewrite ^ /perch/core/runway/start.php last;
}

It would be nice to have multiple fields to spin out custom location directives like above.

ajsalkeld commented 6 years ago

How would this input look? Would it just be a 'custom' field that you type your rules into, or an 'advanced' tab that then gave options for custom try_files and rewrites in your chosen location?