Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: 404 Error on /groups/create/step/group-avatar/


strategy-web-designs
Member

@strategy-web-designs

I thought it may be helpful if I published my current nginx config file to work off of. This is just the latest version that I’ve tried, but it will be good to work off of:

server
{
listen 80;
server_name howtowrite.net *.howtowrite.net;
access_log [PATHTO]/log/access.log;
error_log [PATHTO]/log/error.log;
# rewrite rule – files
location / {
root [PATHTO]/howtowrite.net/public;
index index.php;

gzip on;
gzip_http_version 1.0;
gzip_vary on;
gzip_comp_level 3;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;

if (!-e $request_filename) {
rewrite ^.+/?(/ms-.*) $1 last;
rewrite ^/files/(.+) /wp-includes/ms-files.php?file=$1 last;
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
expires 10d;
break;

}
}

location ~* ^.+.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root [PATHTO]/howtowrite.net/public;
rewrite ^/.*(/wp-.*/.*.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ /wp-includes/ms-files.php?file$
if (!-e $request_filename) {
rewrite ^.+/?(/wp-.*) $1 last;
rewrite ^.+/?(/.*.php)$ $1 last;
rewrite ^(.+)$ /index.php?q=$1 last;
}

expires 30d;
break;
}
# php requests – fast cgi
location ~ .php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME [PATHTO]/howtowrite.net/public$fastcgi_script_name;
include [PATHTO]/fastcgi_params;
}
}

Again, thanks for any and all help,

Moshe

Skip to toolbar