This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $uri $blogname{ | |
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath ; | |
} | |
map $blogname $blogid{ | |
default -999; | |
#Ref: http://wordpress.org/extend/plugins/nginx-helper/ | |
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' ); | |
function keep_me_logged_in_for_1_year( $expirein ) { | |
return 31556926; // 1 year in seconds | |
} |
NewerOlder