1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Fix upload limit in wordpress

This commit is contained in:
mbugeia 2014-10-31 01:05:13 +01:00
parent 62952302d3
commit 6271b64c37
2 changed files with 5 additions and 3 deletions

View file

@ -4,11 +4,12 @@ location PATHTOCHANGE {
rewrite ^ https://$server_name$request_uri? permanent;
}
index index.php;
if (!-e $request_filename)
if (!-e $request_filename)
{
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last;
}
location ~ [^/]\.php(/|$) {
client_max_body_size 30m;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;

View file

@ -1,10 +1,11 @@
location PATHTOCHANGE {
alias ALIASTOCHANGE;
index index.php;
if (!-e $request_filename)
if (!-e $request_filename)
{
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last;
}
client_max_body_size 30m;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;