worker_processes 1; user nobody nogroup; pid /tmp/nginx.pid; error_log /tmp/nginx.error.log; events { worker_connections 1024; accept_mutex off; } http { include mime.types; default_type application/octet-stream; access_log /tmp/nginx.access.log combined; sendfile on; upstream app_server { # server unix:/tmp/gunicorn.sock fail_timeout=0; # For a TCP configuration: server 127.0.0.1:8888 fail_timeout=0; } server { listen 80; client_max_body_size 4G; server_name www.mysite.com; keepalive_timeout 5; location /static { root /depot/pal/myproject; } location / { proxy_pass http://127.0.0.1:8888; } } }
Hello guys, I need your help :)
I run my mezzanine project on gunicorn and nginx (is serving static files).
I have problem with tinymce,
for Insert/Edit Image, Insert/Edit Embedded Image,and so on I am getting 404 Not found nginx/1.1.19.
My nginx.conf
location /media {
root /home/user/sites/mysite/static/;
}
location /static {
root /home/user/sites/mysite/;
}
I don't know why, it's trying to reach:
http://10.41.142.137/static/grappelli/tinymce/jscripts/tiny_mce/plugins/advimage/image.htm = It's OK
Everything else is working right.
I am a begginer, pls have patient with me :) thank you in advance.
Martin
user user;
worker_processes 4;
pid /home/user/sites/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
gzip on;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
server {
listen 80;
server_name mysite;
access_log /home/user/sites/mysite/logs/access.log;
error_log /home/user/sites/mysite/logs/error.log debug;
#set your default location
location / {
proxy_pass http://localhost:8000/;
Serves TinyMCE plugins inside the inline popups and the uploadify SWF, as these are normally static files, and will break with cross-domain JavaScript errors if STATIC_URL is an external host. URL for the file is passed in via querystring in the inline popup plugin template.
Hello guys, I need your help :)
I run my mezzanine project on gunicorn and nginx (is serving static files).
I have problem with tinymce,
for Insert/Edit Image, Insert/Edit Embedded Image,and so on I am getting 404 Not found nginx/1.1.19.
My nginx.conf
location /media {
root /home/user/sites/mysite/static/;
}
location /static {
root /home/user/sites/mysite/;
}