mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
Merge pull request #9773 from basvandijk/wordpress-extraHtaccess
wordpress: allow extending Wordpress's .htaccess file
This commit is contained in:
commit
38ed88538d
@ -40,6 +40,8 @@ let
|
|||||||
RewriteRule ^(.*\.php)$ $1 [L]
|
RewriteRule ^(.*\.php)$ $1 [L]
|
||||||
RewriteRule . index.php [L]
|
RewriteRule . index.php [L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
${config.extraHtaccess}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# WP translation can be found here:
|
# WP translation can be found here:
|
||||||
@ -220,6 +222,17 @@ in
|
|||||||
settings, see <link xlink:href='http://codex.wordpress.org/Editing_wp-config.php'/>.
|
settings, see <link xlink:href='http://codex.wordpress.org/Editing_wp-config.php'/>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
extraHtaccess = mkOption {
|
||||||
|
default = "";
|
||||||
|
example =
|
||||||
|
''
|
||||||
|
php_value upload_max_filesize 20M
|
||||||
|
php_value post_max_size 20M
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Any additional text to be appended to Wordpress's .htaccess file.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
documentRoot = wordpressRoot;
|
documentRoot = wordpressRoot;
|
||||||
|
Loading…
Reference in New Issue
Block a user