Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # open https://drive.google.com in your browser
- # navigate into your public folder (make sure that it has sharing mode 'Public on the web')
- # folder's hash is located in URL: https://drive.google.com/#folders/{MAGIC_HASH}
- # read more: https://developers.google.com/drive/publish-site
- server {
- listen 80;
- server_name domain.com;
- root /var/www/htdocs/domain.com;
- try_files $uri $uri/ @go_google;
- location @go_google {
- return 301 https://googledrive.com/host/{MAGIC_HASH}$request_uri;
- }
- }
Add Comment
Please, Sign In to add comment