HyperFastCgi icon indicating copy to clipboard operation
HyperFastCgi copied to clipboard

fcgi-transport.c:444: parse_params(): Can't find app! HOST='my.host' port=443 path='/index.aspx'

Open mherarsh opened this issue 7 years ago • 4 comments

Hi, I have the same error, can you tell me how can it be solved? Thanks!

OC: CentOS7

#: LD_LIBRARY_PATH=/usr/local/lib hyperfastcgi4 /config=/etc/hyperfastcgi/hfc.config /loglevels=All

[2017-04-07 17:33:09Z] Debug   HyperFastCgi
libev.c:475: Listen():  libevent version: 2.0.21-stable
libev.c:489: Listen():  libevent is using epoll for events.
fcgi-transport.c:444: parse_params():   Can't find app! HOST='109.120.151.151' port=443 path='/index.aspx'
fcgi-transport.c:444: parse_params():   Can't find app! HOST='109.120.151.151' port=443 path='/favicon.ico'

Nginx:

upstream fastcgi_backend {
     server 127.0.0.1:9000;    
     keepalive 80;
 }
  
   server {
         listen   80;
         server_name  109.120.151.151;
         return 301 https://$host$request_uri;
 }
  
 server {
          listen   443 ssl;
          server_name  109.120.151.151;
           
          ssl_certificate /etc/nginx/ssl/xxxx.crt;
          ssl_certificate_key /etc/nginx/ssl/xxx.key;
                   
          proxy_connect_timeout 600;
          proxy_read_timeout 600;
          proxy_send_timeout 600;
          send_timeout       600;
 
          location ~ /\.  { deny all; }
 
          location / {
                  root /var/www/wsteleport/;
                  index index.html index.htm default.aspx Default.aspx;
                  fastcgi_index index.aspx;
 		             fastcgi_keep_conn on;
                  fastcgi_pass fastcgi_backend;
                  include /etc/nginx/fastcgi_params;
                  
                  fastcgi_split_path_info ^((?U).+\.as.x)(/?.+)$;
 		             fastcgi_param PATH_INFO $fastcgi_path_info;
 		             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          }  
 }

HyperFastCGI:

<configuration>
    <server type="HyperFastCgi.ApplicationServers.SimpleApplicationServer">
        <host-factory>HyperFastCgi.HostFactories.SystemWebHostFactory</host-factory>
        <threads min-worker="80" max-worker="0" min-io="4" max-io="0" />
    </server>

<listener type="HyperFastCgi.Listeners.NativeListener">
    <apphost-transport type="HyperFastCgi.Transports.NativeTransport">
        <multithreading>ThreadPool</multithreading>
    </apphost-transport>
        <protocol>InterNetwork</protocol>
        <address>127.0.0.1</address>
        <port>9000</port>
    </listener>

    <apphost type="HyperFastCgi.AppHosts.AspNet.AspNetApplicationHost">
        <log level="Debug" write-to-console="true" />
        <add-trailing-slash>false</add-trailing-slash>
    </apphost>
    <web-applications>
        <web-application>
            <name>109.120.151.151</name>
            <vhost>109.120.151.151</vhost>
            <vport>80</vport>
            <vpath>/</vpath>
            <path>/var/www/wsteleport/</path>
        </web-application>
    </web-applications>
</configuration>

mherarsh avatar Apr 08 '17 13:04 mherarsh

@MherX did you try to change <vport>80</vport> to <vport>443</vport>?

xplicit avatar Apr 08 '17 13:04 xplicit

@xplicit если можно я перейду на русский чтобы нормально объяснит )) Да, так пробовал, но не помогает: <vhost>443</vhost> Пробовал даже убрать SSL но по 80 порту тоже не проходит.

У меня был сервер под debian 8 с ним было много проблем и я перешел на centos7, та конфигурация которую я выложил выше без проблем работало на debian 8, но вот при переносе я наткнулся на проблемы...

PS:

<web-applications>
        <web-application>
            <name>109.120.151.151</name>
            <vhost>109.120.151.151</vhost>
            <vport>443</vport>
            <vpath>/</vpath>
            <path>/var/www/wsteleport/</path>
        </web-application>
    </web-applications>

mherarsh avatar Apr 08 '17 14:04 mherarsh

в логах должно быть сообщение register_host(), здесь его нет. Конфиг, в котором прописаны web-applications действительно лежит в /etc/hyperfastcgi/hfc.config?

xplicit avatar Apr 08 '17 14:04 xplicit

@xplicit да, конфиг точно лежит по этому пути в противном случае не запускается, говорит нет кофиг файла, единственное отличие от debian в том что в текущем случае я дополнительно указываю пусть к либам

mherarsh avatar Apr 08 '17 15:04 mherarsh