apache: main default host is not accessible

I have added VirtualHost and can't access main DocumentRoot from httpd.conf :(
According to RTFM

Main host goes away

If you are adding virtual hosts to an existing web server, you must also create a <VirtualHost> block for the existing host. The ServerNameand DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host.

Ok, i have added VirtualHost directly to httpd.conf and it doesn't help me at all. Why?
Because above of VirtualHost Directive was Include ..\conf.d\*
Hmmm...  Who says you can't teach a old fox new tricks?...

Just add new config file in conf.d directory and it must be first file.
Let's create conf.d/aaaa_default.conf file with content

#first VirtualHost is default

<VirtualHost *:80>

    ServerAdmin webmaster@firsthost.tdl
    DocumentRoot /var/www/html
    ServerName firsthost.tdl:80
    ServerAlias localhost

    ErrorLog  /var/log/httpd/error_log
    CustomLog /var/log/httpd/access_log common

</VirtualHost>


Whoops!!!! The file is loaded first because name(!) and corresponds to my default path.

Some useful settings in LogFormat are
 %f - local filename
%v - virtualhost name


LogFormat "%v %l %u %t \"%r\" %>s %b %f" common


Please note that i am using apache as httpd rpm from fedora core. Other distributive can be slightly different.

Enjoy!

OTRS Cannot find current script 'httpd' at FindBin.pm


i have installed recent OTRS 3.1 and appears message in error_log Cannot find current script 'httpd' at /usr/share/perl5/FindBin.pm
I have found that exists patched FindBin.pm Version 1.51

Enjoy!

Notepad++ - new User Defined Language (UDL2)


UDL (User Defined Language) is one of most important features in Notepad++.

In v6.2, much better UDL system (UDL2) is provided by Ivan Radic (aka Loreia). Not only many restrictions/limitations in UDL are removed, but also a lot of new features/enhancements are added in UDL2. In fact, you can almost define any language with it.

The key features of UDL2 are:
1. More keyword groups were added (more syntax highlighting can be defined):
  • 3 folding groups
  • 8 keyword groups
  • 2 comment groups
  • 1 number definitons
  • 2 operators groups
  • 8 delimiter sets
2. Multipart keywords are supported (for example: "else if" can be defined as a single keyword)
3. Whitespace is no longer mandatory as keyword separator: Operators, Delimiters and Folding keywords can be recognized with or without whitespace separators.
4. Numbers recognition support is greatly improved (prefix, suffix, range and extra symbols supported).
5. Operators and delimiters can be longer than one character.
6. The same characters can be used as comments AND operators.
7. Comments and delimiters support nesting (even within each other).
8. Improvments to Comments include:
  • Comment folding
  • Comment continuation
  • Comment only start at the beginning of line
9. In the case of several comment pairs defined, comment open symbols match only with comment close symbols of the same order. (for example: /* C comment */, /+ D comment +/, but not /* mixed comment +/)

Source: notepad-plus-plus.org
read more about UDL2...

HOWTO: Repair Logitech M325 Mouse

FixIt says that you will find single screw under CE label. It isn't always true.