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

request for robots.txt crashes server #167

Closed
acozine opened this issue Apr 18, 2016 · 1 comment
Closed

request for robots.txt crashes server #167

acozine opened this issue Apr 18, 2016 · 1 comment
Labels
Milestone

Comments

@acozine
Copy link
Contributor

acozine commented Apr 18, 2016

This weekend the press.curationexperts.com server got a a request from a webcrawler for press.curationexperts.com/robots.txt. Instead of returning the contents of public/robots.txt, the server interpreted the request as seekeing a subdomain (press) callled "robots" and crashed. I think this will go away when #107 is done, and the press home pages look like umich,press.curationexperts.com instead of press.curationexperts.com/umich.

Gist of the production log is here: https://gist.github.com/acozine/b22f24ff5caccb36e8ab9f30976c5c93.

@val99erie val99erie self-assigned this Apr 20, 2016
@val99erie val99erie assigned acozine and unassigned val99erie Apr 20, 2016
@acozine
Copy link
Contributor Author

acozine commented Apr 20, 2016

Problem fixed by an extension of the ProxyPass directives in /etc/apache2/sites-available/heliotrope.conf. Once I added specific directives for the files in public/, the errors went away. Full VirtualHost definition for use with Puma is:

<VirtualHost *:80>
  ServerName 127.0.0.1
  # !!! Be sure to point DocumentRoot to 'public'!
  DocumentRoot /opt/heliotrope/current/public

  ProxyPass /assets !
  ProxyPass /favicon.ico !
  ProxyPass /robots.txt !
  ProxyPass /system !
  ProxyPassMatch ^/(404|422|500).html$ !

  ProxyPass / http://127.0.0.1:3030/
  ProxyPassReverse / http://127.0.0.1:3030/

  # allows forward slashes for IIIF
  AllowEncodedSlashes NoDecode
  <Directory /opt/heliotrope/current/public>
        # MultiViews must be turned off.
        Options -MultiViews
        # Uncomment this if you're on Apache >= 2.4:
        Require all granted
  </Directory>
</VirtualHost>

where Puma is running on port 3030.

@acozine acozine closed this as completed Apr 20, 2016
@mark-dce mark-dce modified the milestone: Release 0.3 Apr 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants