bd808 added a comment.

I could not find the listen 80; directive in any file in /etc/nginx on pst.wikidata-primary-sources-tool.eqiad.wmflabs. Nginx was running, but did not seem to be bound to port 80. I made these changes:

  • Added listen 80; to /etc/nginx/sites-available/pst
  • Symlinked /etc/nginx/sites-enabled/pst to /etc/nginx/sites-available/pst
  • Restarted nginx

I can now curl the nginx install locally:

$ curl -v http://localhost/
* Hostname was NOT found in DNS cache
*   Trying ::1...
* connect to ::1 port 80 failed: Connection refused
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.38.0
> Host: localhost
> Accept: */*
>
< HTTP/1.1 200 OK
* Server nginx/1.13.6 is not blacklisted
< Server: nginx/1.13.6
< Date: Thu, 31 May 2018 19:54:42 GMT
< Content-Type: text/html
< Content-Length: 612
< Last-Modified: Wed, 11 Oct 2017 07:33:46 GMT
< Connection: keep-alive
< ETag: "59ddc95a-264"
< Accept-Ranges: bytes
<
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
    body {
        width: 35em;
        margin: 0 auto;
        font-family: Tahoma, Verdana, Arial, sans-serif;
    }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>

<p>For online documentation and support please refer to
<a href="">
Commercial support is available at
<a href="">

<p><em>Thank you for using nginx.</em></p>
</body>
</html>
* Connection #0 to host localhost left intact

The /etc/nginx/sites-available/pst config will need more settings added to it in order to reverse proxy to your Blazegraph instance. See https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ for some help.


TASK DETAIL
https://phabricator.wikimedia.org/T192292

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: bd808
Cc: bd808, Aklapper, Hjfocs, Zylc, 1978Gage2001, Lahi, aborrero, Gq86, GoranSMilovanovic, Kiailandi, Chicocvenancio, QZanden, Tbscho, dachary, LawExplorer, JJMC89, srodlund, Luke081515, Wikidata-bugs, aude, Gryllida, Ricordisamoa, Sjoerddebruin, Tpt, scfc, Mbch331, Krenair, chasemp
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to