Skip to content

Instantly share code, notes, and snippets.

@tvandervossen
Created February 20, 2011 22:06
Show Gist options
  • Save tvandervossen/836355 to your computer and use it in GitHub Desktop.
Save tvandervossen/836355 to your computer and use it in GitHub Desktop.
Add a viewport meta element to Apache’s auto-generated index pages
Adding the following to /etc/apache2/extra/httpd-autoindex.conf makes browsing Apache’s auto-generated index pages a lot easier on an iOS device which can be handy while testing:
IndexHeadInsert "<meta name=\"viewport\" content=\"width=640,initial-scale=1\">"
@risacher
Copy link

Consider this instead:
IndexHeadInsert "<meta name=\"viewport\" content=\"width=device-width,initial-scale=1\">"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment