On Fri, 4 Aug 2000, Konstantin Tokar wrote:

> � ������ � �����������, �������� #define NMYPORTS 8 ? � Russian
> Apache ������ ������� ������ ����������.

� �������� ����� � ���������, ��������.

> 
> � ��� ������ ��� �����������. ������ "GET / HTTP/1.0" ���� �����
> ���������, � ����������� ���. ����� ������:

���� ��� ��������� "Host:", �� ���������� ���� ������ ����� �������������
������ (����� ��������������� ����� map) ����� ������ � ������ ���� accel
������� �� ������ � �����, ��������������� �����-���� ������ map (������
map, � �� map_regex, ������ ��� � map_regex ����� � ����� ������ ������ ��
���� �������� �����, ������� �� ���-�� ����������). � ����� ���������
������ ����������� ��������������� �������� ������� ���������� map ��
������:

try_addresses:
    if ( ip_lookup == FALSE )
        goto done;
    /* If we didn't find hostname from host - try addresses   */
    map = maps;
    while ( map ) {
        if ( map->from_host ) {
            str_to_sa(map->from_host, (struct sockaddr*)&map_sa);
            if ( (map_sa.sin_addr.s_addr == rq->my_sa.sin_addr.s_addr) &&
                (!map->from_port || (map->from_port ==
                        ntohs(rq->my_sa.sin_port)) ) ) {
                my_xlog(LOG_NOTICE|LOG_DBG|LOG_INFORM, "find_map(): Map found: %s\n", 
map->from_host);
                break;
            }
        }
        map = map->next;
    }


> "Your browser sent a request that this server could not understand.
> Client sent malformed Host header"
> 
>  ��������:
> 
> 
> ������� � accel_maps:
> 
>         map_regex       www.mpei.ac.ru:8000/!(.*) tokar.mpei.ac.ru:8080/$1
> 
> ����� ������ http://www.mpei.ac.ru:8000/!test, � �� ������ ����������
> 
> GET /test HTTP/1.1
> User-Agent: Mozilla/4.72 [en] (WinNT; I)
> Host: tokar.mpei.ac.ru

��� ����� ���� � ������ - ������� �������� ������������ � ���� ������ -
��������.

> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
> Accept-Encoding: gzip
> Accept-Language: en,pdf
> Accept-Charset: iso-8859-1,*,utf-8
> Connection: close
> X-Forwarded-For: 193.233.70.43
> Via: pm.mpei.ac.ru:3128 (Oops 1.4.6)

��, ����� ������������� http_port. 

> 
> � ���� Host: ������� ����� �����. � Via: ���� � �������, ���� ��� ���
> ��� �� ����� ������� (�����).
> 
> 
> ---
> Konstantin Tokar
> 
> 
> =====================================================================
> If you would like to unsubscribe from this list send message to
> [EMAIL PROTECTED] with "unsubscribe oops" in message body.
> Archive is accessible on http://www.paco.net/oops/
> 

Igor Khasilev                |
PACO Links, [EMAIL PROTECTED]    |

=====================================================================
If you would like to unsubscribe from this list send message to
[EMAIL PROTECTED] with "unsubscribe oops" in message body.
Archive is accessible on http://www.paco.net/oops/

Дати відповідь електронним листом