changeset 1240:942d27d8fdf3

remove SERVER_NAME due to troubles When using SERVER_NAME="127.0.0.1:8080", the cookie domain gets set to ".127.0.0.1". Works for firefox, but not for chromium (one can not log in). Also, one could not use url http://localhost:8080 because (of course) it only matches 127.0.0.1 when configured like this. So it is better to leave away this setting, then the cookie domain will be unspecified. Initially this was introduced to fix issue #96 (missing port in url_for(_item) output), but it somehow does not happen any more.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 17 Jan 2012 21:08:30 +0100
parents 7d2a51d05e73
children fca26a1acf26
files docs/admin/serve.rst wikiconfig.py
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/docs/admin/serve.rst	Sun Jan 15 16:30:01 2012 +0100
+++ b/docs/admin/serve.rst	Tue Jan 17 21:08:30 2012 +0100
@@ -23,13 +23,6 @@
  # or, if you need another ip/port:
  moin moin --config /path/to/wikiconfig.py --host 1.2.3.4 --port 7777
 
-If you plan to use an IP or hostname different from 127.0.0.1, please also set::
-
- SERVER_NAME = "127.0.0.1:8080"
-
-accordingly in your wiki config. Use the IP or hostname that you use in the web
-browser when accessing the wiki.
-
 MoinMoin will start the built-in server and try to locate the wiki configuration
 from one of the following: **NOTE: please use an absolute path**
 
--- a/wikiconfig.py	Sun Jan 15 16:30:01 2012 +0100
+++ b/wikiconfig.py	Tue Jan 17 21:08:30 2012 +0100
@@ -76,7 +76,6 @@
 MOINCFG = Config # Flask only likes uppercase stuff
 # Flask settings - see the flask documentation about their meaning
 SECRET_KEY = 'you need to change this so it is really secret'
-SERVER_NAME = "127.0.0.1:8080"
 #DEBUG = False # use True for development only, not for public sites!
 #TESTING = False
 #SESSION_COOKIE_NAME = 'session'