When previewing files locally on your hard drive that contain active content (for example, JavaScript or Flash), the following security message appears in internet explorer's yellow Information Bar:
"To help protect your security, internet explorer has restricted this file from showing active content that could access your computer. Click here for options ..."
You can resolve this by checking:
Tools -> Internet Options -> Advanced -> Allow active content to run in files on My Computer
(Located in the "Security Section", second line)
четверг, 5 августа 2010 г.
воскресенье, 1 августа 2010 г.
Windows: How to enable user environment debug logging in retail builds of Windows
| Article ID | : | 221833 |
| Last Review | : | October 11, 2007 |
| Revision | : | 11.4 |
This article was previously published under Q221833
SUMMARY
The versions of Microsoft Windows that are listed in the "Applies to" section let you modify the registry to turn on debug logging of the user profile and the Windows system policy processes. You can also use this logging to track down problems that are related to the start of Desktop Standard PolicyMaker client-side extensions (CSEs). Debug logging functionality is also available in Microsoft Windows NT 4.0. However, in Windows NT 4.0, this functionality requires a checked (debug) build of the Userenv.dll file.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
154120 (http://support.microsoft.com/kb/154120/) Debugging user profiles and system policies in Windows NT 4.0
You can use debug logging output to troubleshoot problems with user profiles and Group Policy processing. MORE INFORMATION
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
Use Registry Editor to add or to modify the following registry entry:
Note To disable logging, select NONE (0x00000000).
You can combine these values. For example, you can combine VERBOSE 0x00000002 and LOGFILE 0x00010000 to get 0x00010002. Therefore, if UserEnvDebugLevel is given a value of 0x00010002, LOGFILE and VERBOSE are both turned on. Combining these values is the same as using an OR statement.
The log file is written to the %Systemroot%\Debug\UserMode\Userenv.log file. If the Userenv.log file is larger than 300 KB, the file is renamed Userenv.bak, and a new Userenv.log file is created. This action occurs when a user logs on locally or by using Terminal Services, and the Winlogon process starts. However, because the size check only occurs when a user logs on, the Userenv.log file may grow beyond the 300 KB limit.
The 300 KB limit cannot be modified.
322756 (http://support.microsoft.com/kb/322756/) How to back up and restore the registry in Windows
Use Registry Editor to add or to modify the following registry entry:
Subkey: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon
Entry: UserEnvDebugLevel
Type: REG_DWORD
Value data: 10002 (Hexadecimal)
UserEnvDebugLevel can have the following values: Entry: UserEnvDebugLevel
Type: REG_DWORD
Value data: 10002 (Hexadecimal)
NONE 0x00000000
NORMAL 0x00000001
VERBOSE 0x00000002
LOGFILE 0x00010000
DEBUGGER 0x00020000
The default value is NORMAL|LOGFILE (0x00010001).NORMAL 0x00000001
VERBOSE 0x00000002
LOGFILE 0x00010000
DEBUGGER 0x00020000
Note To disable logging, select NONE (0x00000000).
You can combine these values. For example, you can combine VERBOSE 0x00000002 and LOGFILE 0x00010000 to get 0x00010002. Therefore, if UserEnvDebugLevel is given a value of 0x00010002, LOGFILE and VERBOSE are both turned on. Combining these values is the same as using an OR statement.
0x00010000 OR 0x00000002 = 0x00010002
Note If you set UserEnvDebugLevel to 0x00030002, the most verbose details are logged in the Userenv.log file.The log file is written to the %Systemroot%\Debug\UserMode\Userenv.log file. If the Userenv.log file is larger than 300 KB, the file is renamed Userenv.bak, and a new Userenv.log file is created. This action occurs when a user logs on locally or by using Terminal Services, and the Winlogon process starts. However, because the size check only occurs when a user logs on, the Userenv.log file may grow beyond the 300 KB limit.
The 300 KB limit cannot be modified.
Windows: How to disable security warning ("Не удается проверить издателя")
How to disable security warning ("Не удается проверить издателя"):
gpedit.msc
User Configuration->Administrative Templates->Windows Component->Attacment Manager->Inclusion list for moderate risk file types
прописываем там расширения, для которых не выводить предупреждения (exe, jpg, etc)
gpedit.msc
User Configuration->Administrative Templates->Windows Component->Attacment Manager->Inclusion list for moderate risk file types
прописываем там расширения, для которых не выводить предупреждения (exe, jpg, etc)
понедельник, 12 июля 2010 г.
SquidNT + Windows Seven + NTLM
By default, NTLM-authentication is disabled on Windows 7.
To turn it on, open local security (secpol.msc), then Local Policies - Security Options - Network security: LAN Manager authentication level, set it to: "Send LM & NTLM..."
If your Windows 7 system is Windows 7 Home Premium, you may need to configure it via Registry.
1. Launch regedit from Start Search box.
2. Find the following branch.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3. Create a DWORD key under Lsa and set:
Name: LmCompatibilityLevel
Value: 1
4. Restart.
To turn it on, open local security (secpol.msc), then Local Policies - Security Options - Network security: LAN Manager authentication level, set it to: "Send LM & NTLM..."
If your Windows 7 system is Windows 7 Home Premium, you may need to configure it via Registry.
1. Launch regedit from Start Search box.
2. Find the following branch.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
3. Create a DWORD key under Lsa and set:
Name: LmCompatibilityLevel
Value: 1
4. Restart.
Ярлыки:
ntlm,
squid,
Windows Seven
вторник, 22 июня 2010 г.
Symphony CMS + nginx config
My primitive nginx site configuration for symphony-cms (nginx + php-fpm):
server{
listen 80;
server_name mydomain.com www.mydomain.com;
access_log /var/log/nginx/mydomain.access.log;
#access_log off;
error_log /var/log/nginx/mydomain.error.log;
client_max_body_size 50m;
root /var/www/mydomain/docs;
location / {
index index.php index.html;
if (-f $request_filename){
access_log off;
expires 30d;
break;
}
### BACKEND
if ($request_filename ~ /symphony/) {
rewrite ^/symphony/?$ /index.php?mode=administration&$query_string last;
rewrite ^/symphony(/(.*/?))?$ /index.php?symphony-page=$1&mode=administration&$query_string last;
}
##IMAGE RULES
rewrite ^/image/(.+\.(jpg|gif|jpeg|png|bmp|JPG|GIF|JPEG|PNG|BMP))$ /extensions/jit_image_manipulation/lib/image.php?param=$1 last;
### CHECK FOR TRAILING SLASH - Will ignore files
if (!-f $request_filename) {
rewrite ^/(.*[^/]+)$ /$1/ permanent;
}
### MAIN REWRITE - This will ignore directories
if (!-d $request_filename) {
rewrite ^/(.*)$ /index.php?symphony-page=$1 last;
}
}
# error_page 404 /index.php;
## Images and static content is treated different
location ~* ^.+.(xml)$ {
access_log off;
expires 30d;
}
## Parse all .php file in the /var/www directory
location ~ .php$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass backend;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort off;
fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
}
## Disable viewing .htaccess & .htpassword
location ~ /\.ht {
deny all;
}
}
upstream backend {
server 127.0.0.1:9000;
}
Подписаться на:
Сообщения (Atom)