Comments (7)
I have added a new configuration variable to enable this header.
Also nginx configuration should include
location ^~ /upload {
internal;
}
or
location ^~ /upload {
root /path/to/fm/document/root;
internal;
}
from fm.
Right?
server {
listen 80;
server_name domen.com;
if (!-e $request_filename) {
rewrite ^(.+)$ /index.php?main=$1 last;
}
location / {
root /home/www/domen.com/public/;
proxy_pass 127.0.0.1:81;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
}
location ^~ /upload {
internal;
}
}
I haven't enough experience with nginx. I used it only for a proxy of request
from fm.
For just proxification you should move root directive to server block, or directly to upload location.
See my conf: http://pastebin.com/2GuunCPc
from fm.
Btw, It requires additional rules for securing application folders, that done with .htaccess files..
or changing structure to front/protected directories
from fm.
ok, thanks! it is possible I will write on a ostora site for an example your nginx conf?
from fm.
Of course : )
I have added restrictions for system and upload directories, and removed PHP values(it was added for my own configuration, to increase limits, but avoid changing php.ini or FPM configuraion)
New conf here: http://pastebin.com/0DdjBAAt
from fm.
by the evening i will change!
from fm.
Related Issues (12)
- Проблема с листингом юзеров HOT 4
- Кнопки copy/paste не работают HOT 1
- Настройка rewright_mod HOT 2
- Не сохраняются Большие файлы HOT 2
- Блокировка доступа к директориям HOT 5
- Не работает файловый менеджер HOT 9
- Запрос функцианала HOT 6
- Не найдены папки ajax/users/ и ajax/users/ HOT 4
- Quota value validator
- could not find driver HOT 2
- Изображение без иконки HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fm.