Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mherarsh opened this issue Apr 8, 2017 · 4 comments

Comments

@mherarsh
Copy link

mherarsh commented Apr 8, 2017

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>

@xplicit
Copy link
Owner

xplicit commented Apr 8, 2017

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

@mherarsh
Copy link
Author

mherarsh commented Apr 8, 2017

@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>

@xplicit
Copy link
Owner

xplicit commented Apr 8, 2017

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

@mherarsh
Copy link
Author

mherarsh commented Apr 8, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants