升级到IIS 7,现在大型上传失败(upgraded to IIS 7 and now large uploads are failing)
我最近将我的经典ASP应用程序从IIS 6移到IIS 7.5,然后当用户尝试上传大量文件或大文件时收到很多抱怨。
做了一些研究后,我使用以下命令更改了maxRequestEntityAllowed,
appcmd.exe set config -section:system.webServer/asp/limits.maxRequestEntityAllowed:"2147483647" /commit:apphost
这立即解决了这个问题。 问题是,它在某个时刻停止工作,错误又回来了。 就好像设置被覆盖在元数据库中,但是当我检查ASP>限制部分中的限制部分时,新值是stil记录的。
如果我再次重新输入大值,则上传再次起作用。 这怎么被覆盖?
我确保在web.config文件和app.config文件中设置了这个新值。 我已经多次重启IIS,当IIS处于关闭状态时,事件使用了上面的appcmd。
任何帮助将不胜感激。
I recently moved my classic ASP application from IIS 6 to IIS 7.5 and then received a lot of complaints when users tried to upload a lot of files or a large file.
After doing some research, I changed the maxRequestEntityAllowed, using the following command,
appcmd.exe set config -section:system.webServer/asp/limits.maxRequestEntityAllowed:"2147483647" /commit:apphost
That immediately solved the issue. The problem is, it stops working at some point and the errors come back. It's as though the settings gets overwritten in the metabase but when I check the limits section in the ASP > Limits section, the new value is stil recorded.
If I re-enter the large valure again, the uploads work again. How is this being overwritten?
I have made sure that the this new value is set in the web.config file and the app.config file too. I have restarted IIS several time and event used the above appcmd when IIS was in a shutdown state.
Any help would greatly be appreciated.
原文:https://stackoverflow.com/questions/14512165
最满意答案
胡克是你的朋友。
/** * Fires when the blog is switched. * * @since MU * * @param int $new_blog New blog ID. * @param int $new_blog Blog ID. */ do_action( 'switch_blog', $new_blog, $new_blog );
Hookr is your friend.
/** * Fires when the blog is switched. * * @since MU * * @param int $new_blog New blog ID. * @param int $new_blog Blog ID. */ do_action( 'switch_blog', $new_blog, $new_blog );
相关问答
更多-
我找到了一个有效的解决方案 - 没有像这样的其他任何插件。 它允许您创建网络范围菜单并将其应用于网络中的所有站点 http://wpmututorials.com/plugins/networkwide-menu/ I found a solution which works - there weren't any other plugins like this one. It allows you to create a network wide menu and apply it to all site ...
-
胡克是你的朋友。 /** * Fires when the blog is switched. * * @since MU * * @param int $new_blog New blog ID. * @param int $new_blog Blog ID. */ do_action( 'switch_blog', $new_blog, $new_blog ); http://hookr.io/3.9.1/actio ...
-
select * from wp_blogs 从命令注释的输出下来,你想要的用户是blog_id 。 例如:假设您想要使用blog_id = 2来访问该站点的用户,接下来运行以下查询。 select * from wp_users u join wp_usermeta um on u.id=um.user_id where um.meta_key="wp_2_capabilities" select * from wp_blogs From the output of the command note do ...
-
我找到了自己的解决方案。 通过switch_to_blog()创建用户时; 在使用相同的switch_to_blog()检查用户功能和角色时,将来总是需要切换博客; 示例检查功能的功能 function is_singer(){ global $current_user; switch_to_blog(1); if (current_user_can('singer_cp')) { restore_current_blog(); //!IMPORTANT - need ...
-
看看http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ 也许值得将你的问题发布到wordpress.stackexchange.com - 这是一个特定于WP的论坛。 Have a look at http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/ It might also be worth posting your question to wordp ...
-
我必须编写一个custm分页变量,如果需要,可以在这里找到整个工作循环: https : //github.com/vimes1984/Wordpress_multisite_search I had to write a custm paged variable you can find the whole working loop here if it's needed: https://github.com/vimes1984/Wordpress_multisite_search
-
WordPress Multisite:激活/停用特定博客的插件(WordPress Multisite: Activate / Deactivate a Plugin of a Specific Blog)[2022-09-01]
从您的网络仪表板转到任何子站点仪表板 然后转到插件并在此特定博客上激活插件 如果您想以编程方式执行此操作,可以在switch_to_blog($ blog_id)函数之后使用activate_plugins()或deactivate_plugins(),例如: add_action( 'admin_init', 'true_plugin_off_in_theme' ); function true_plugin_off_in_theme() { switch_to_blog( 'PASS_BLOG ... -
WordPress - MultiSite:你确定要这么做吗?(WordPress - MultiSite: Are you sure you want to do this? Please try again)[2022-02-08]
你的.htaccess的数量是ganked .... 将此部分移到顶部。 #uploaded files RewriteRule ^(.*/)?files/$ index.php [L] RewriteCond %{REQUEST_URI} !.*wp-content/plugins.* RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash ... -
像b__说你应该检查: 你在哪里使用这段代码? (functions.php,插件) 您应该逐个禁用插件,以检查是否有一些干扰 并在最后一个案例中更改主题 我做过像你这样的事情,这是代码,万一你想尝试一下: // Current Site $current = get_current_site(); // All Sites $blogs = get_blog_list( 0, 'all' ); foreach ( $blogs as $blog ) { // switch to the bl ...
-
好的,如果你想让你的网站运行 https://example.com/site1 https://example.com/site2 这是你能做的, 转到网络设置>站点将site2地址从/ wordpress / site2更改为/ site2 你需要修复,nginx配置如下 # rewrite ^/(/[^/]+)?(/wp-.*) wordpress/$2 last; # rewrite ^/(/[^/]+)?(/.*\.php) wordpress/$2 last; rewrite ^/[_0-9 ...