Commits

Thomas Waldmann  committed 942d27d

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.

  • Participants
  • Parent commits 7d2a51d

Comments (0)

Files changed (2)

File docs/admin/serve.rst

  # 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**
 

File wikiconfig.py

 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'