Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Unified Diff: tools/telemetry/third_party/gsutilz/gslib/commands/web.py

Issue 1376593003: Roll gsutil version to 4.15. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/gsutilz/gslib/commands/web.py
diff --git a/tools/telemetry/third_party/gsutilz/gslib/commands/web.py b/tools/telemetry/third_party/gsutilz/gslib/commands/web.py
index 971cb8b153dfebeb5c1212f817073167873d5922..aa7708a45ff8d9f1fcc6a9ff39c0f5e6d673b5a3 100644
--- a/tools/telemetry/third_party/gsutilz/gslib/commands/web.py
+++ b/tools/telemetry/third_party/gsutilz/gslib/commands/web.py
@@ -16,7 +16,6 @@
from __future__ import absolute_import
-import getopt
import sys
from apitools.base.py import encoding
@@ -90,16 +89,16 @@ _DESCRIPTION = """
3. Configure the bucket to have website behavior using the command:
- gsutil web set -m index.html -e 404.html gs://example.com
+ gsutil web set -m index.html -e 404.html gs://www.example.com
4. Add a DNS CNAME record for example.com pointing to c.storage.googleapis.com
(ask your DNS administrator for help with this).
- Now if you open a browser and navigate to http://example.com, it will display
- the main page instead of the default bucket listing. Note: It can take time
- for DNS updates to propagate because of caching used by the DNS, so it may
- take up to a day for the domain-named bucket website to work after you create
- the CNAME DNS record.
+ Now if you open a browser and navigate to http://www.example.com, it will
+ display the main page instead of the default bucket listing. Note: It can
+ take time for DNS updates to propagate because of caching used by the DNS,
+ so it may take up to a day for the domain-named bucket website to work after
+ you create the CNAME DNS record.
Additional notes:
@@ -109,14 +108,15 @@ _DESCRIPTION = """
2. The main_page_suffix applies to each subdirectory of the bucket. For
example, with the main_page_suffix configured to be index.html, a GET
- request for http://example.com would retrieve
- http://example.com/index.html, and a GET request for
- http://example.com/photos would retrieve
- http://example.com/photos/index.html.
+ request for http://www.example.com would retrieve
+ http://www.example.com/index.html, and a GET request for
+ http://www.example.com/photos would retrieve
+ http://www.example.com/photos/index.html.
3. There is just one 404.html page: For example, a GET request for
- http://example.com/photos/missing would retrieve
- http://example.com/404.html, not http://example.com/photos/404.html.
+ http://www.example.com/photos/missing would retrieve
+ http://www.example.com/404.html, not
+ http://www.example.com/photos/404.html.
4. For additional details see
https://developers.google.com/storage/docs/website-configuration.

Powered by Google App Engine
This is Rietveld 408576698