{"action":"created","issue":{"url":"https://api.github.com/repos/dgl/cgiirc/issues/9","labels_url":"https://api.github.com/repos/dgl/cgiirc/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/dgl/cgiirc/issues/9/comments","events_url":"https://api.github.com/repos/dgl/cgiirc/issues/9/events","html_url":"https://github.com/dgl/cgiirc/issues/9","id":127843918,"number":9,"title":"Undefined subroutine &main::1 called.","user":{"login":"bts368","id":10347225,"avatar_url":"https://avatars.githubusercontent.com/u/10347225?v=3","gravatar_id":"","url":"https://api.github.com/users/bts368","html_url":"https://github.com/bts368","followers_url":"https://api.github.com/users/bts368/followers","following_url":"https://api.github.com/users/bts368/following{/other_user}","gists_url":"https://api.github.com/users/bts368/gists{/gist_id}","starred_url":"https://api.github.com/users/bts368/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bts368/subscriptions","organizations_url":"https://api.github.com/users/bts368/orgs","repos_url":"https://api.github.com/users/bts368/repos","events_url":"https://api.github.com/users/bts368/events{/privacy}","received_events_url":"https://api.github.com/users/bts368/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T04:46:49Z","updated_at":"2016-01-24T03:39:20Z","closed_at":null,"body":"So I'm running with nginx and uwsgi.\r\n\r\ni'm trying to get this to work but it seems to be failing. I have no idea if it's something i'm doing or not.\r\n\r\nnginx config (scrubbed):\r\n\r\n```\r\nserver {\r\nlisten [::]:443 ssl;\r\n\tserver_name my.server.com;\r\n\terror_page 404 /usr/share/nginx/errors/404.html;\r\n\taccess_log /var/log/nginx/vhost/chat/ssl_access.log main;\r\n\t#error_log /var/log/nginx/vhost/chat/ssl_error.log;\r\n\terror_log /var/log/nginx/vhost/chat/ssl_error.log debug;\r\n\tssl_certificate /etc/nginx/ssl/certs/wildcard.crt;\r\n\tssl_certificate_key /etc/nginx/ssl/keys/myserver.key;\r\n\tssl_session_timeout  5m;\r\n\tssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\n\tssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';\r\n\tssl_dhparam /etc/nginx/ssl/keys/dh4096.pem;\r\n\tssl_prefer_server_ciphers   on;\r\n\r\n\t#root /srv/http/chat;\r\n\r\n\tlocation / {\r\n\t\troot   /srv/http/chat;\r\n\t\tindex  index.html index.htm;\r\n\t\tinclude uwsgi_params;\r\n\t\tuwsgi_pass unix:/run/uwsgi/cgiirc.sock;\r\n\t\tuwsgi_modifier1 5;\r\n\t\t#uwsgi_pass 127.0.0.1:3031;\r\n\t}\r\n}\r\n```\r\n\r\n/etc/uwsgi/cgiirc.ini:\r\n```\r\n[uwsgi]\r\nmaster = true\r\nchdir = /srv/http/chat\r\nplugins = psgi\r\nsocket = /run/uwsgi/cgiirc.sock\r\ncgi = /srv/http/chat\r\ncgi-allowed-ext = .cgi\r\nuid = http\r\ngid = http\r\npsgi = /srv/http/chat/irc.cgi\r\nhttp-socket-modifier1 = 5\r\n```\r\n\r\nand the config:\r\n```\r\n[root@alpha chat.src]# egrep -vE '^[[:space:]]*($|#)' cgiirc.config\r\ndefault_server = irc.freenode.net\r\ndefault_port = 7000\r\ndefault_channel = #mychannel\r\ndefault_name = https://my.server.com\r\ndefault_nick = web|???????\r\ndefault_user = cgiirc\r\nquit_message = https://my.server.com\r\nscript_nph = nph-irc.cgi\r\nscript_form = client-perl.cgi\r\nscript_login = irc.cgi\r\nimage_path = images\r\nsocket_prefix = /tmp/cgiirc-\r\nencoded_ip = 2\r\nip_access_file = ipaccess\r\nallow_non_default = 0\r\naccess_channel = .*\r\naccess_server = .*\r\naccess_port = .*\r\naccess_command = msg me whois nick q !\r\nsession_timeout = 3600\r\ndnsbl = dnsbl.dronebl.org\r\nlogin basic = Nickname\r\nlogin advanced = Nickname, Realname, Password, Format, Character set\r\nformat = default\r\ninterface timestamp = 1\r\ninterface smilies = 0\r\ninterface scrollback = 0\r\n```\r\n\r\nhitting https://my.server.com with curl causes the following to appear in the uwsgi logs (and returns a 500):\r\n\r\n```\r\nJan 20 23:36:25 my.server.com uwsgi[31536]: [uwsgi-perl error] Undefined subroutine &main::1 called.\r\nJan 20 23:36:25 my.server.com uwsgi[31536]: [pid: ####|app: 0|req: 2/2] ::ffff:my.client.ip.addr () {42 vars in 626 bytes} [Wed Jan 20 23:36:25 2016] GET / => generated 21 bytes in 0 msecs (HTTP/1.1 500) 2 headers in 83 bytes (0 switches on core 0)\r\n```\r\n\r\nany ideas? this is reproducible for me on both the git HEAD and on the latest release tarball.\r\n\r\nsoftware/versions:\r\nnginx 1.9.9\r\nArch Linux (kernel 4.3.3)\r\nuwsgi 2.0.12\r\nperl 5.22.1"},"comment":{"url":"https://api.github.com/repos/dgl/cgiirc/issues/comments/174246692","html_url":"https://github.com/dgl/cgiirc/issues/9#issuecomment-174246692","issue_url":"https://api.github.com/repos/dgl/cgiirc/issues/9","id":174246692,"user":{"login":"dgl","id":5385,"avatar_url":"https://avatars.githubusercontent.com/u/5385?v=3","gravatar_id":"","url":"https://api.github.com/users/dgl","html_url":"https://github.com/dgl","followers_url":"https://api.github.com/users/dgl/followers","following_url":"https://api.github.com/users/dgl/following{/other_user}","gists_url":"https://api.github.com/users/dgl/gists{/gist_id}","starred_url":"https://api.github.com/users/dgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgl/subscriptions","organizations_url":"https://api.github.com/users/dgl/orgs","repos_url":"https://api.github.com/users/dgl/repos","events_url":"https://api.github.com/users/dgl/events{/privacy}","received_events_url":"https://api.github.com/users/dgl/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T03:39:20Z","updated_at":"2016-01-24T03:39:20Z","body":"You need to run it as a CGI program, it doesn't support servlet style execution. (It would be possible to do though -- there's some unfinished fastcgi support which might give an idea -- patches welcome)."}}