Invalid HTTP_HOST header: 'www.roonets.co.kr'. You may need to add 'www.roonets.co.kr' to ALLOWED_HOSTS.
Request Method: | GET |
---|---|
Request URL: | http://www.roonets.co.kr/platform/property_management_system |
Django Version: | 3.1.1 |
Exception Type: | DisallowedHost |
Exception Value: | Invalid HTTP_HOST header: 'www.roonets.co.kr'. You may need to add 'www.roonets.co.kr' to ALLOWED_HOSTS. |
Exception Location: | D:\virtual_rhmp\benedict\lib\site-packages\django\http\request.py, line 137, in get_host |
Python Executable: | D:\virtual_rhmp\benedict\Scripts\python.exe |
Python Version: | 3.8.8 |
Python Path: | ['.', 'C:\\Python38\\python38.zip', 'C:\\Python38\\DLLs', 'C:\\Python38\\lib', 'C:\\Python38', 'D:\\virtual_rhmp\\benedict', 'D:\\virtual_rhmp\\benedict\\lib\\site-packages'] |
Server time: | Fri, 19 Apr 2024 01:11:51 +0900 |
D:\virtual_rhmp\benedict\lib\site-packages\django\core\handlers\exception.py
, line 47, in inner
response = await sync_to_async(response_for_exception)(request, exc)
return response
return inner
else:
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | DisallowedHost("Invalid HTTP_HOST header: 'www.roonets.co.kr'. You may need to add 'www.roonets.co.kr' to ALLOWED_HOSTS.") |
get_response | <django.middleware.common.CommonMiddleware object at 0x000001F33201AB50> |
request | <WSGIRequest: GET '/platform/property_management_system'> |
D:\virtual_rhmp\benedict\lib\site-packages\django\utils\deprecation.py
, line 113, in __call__
def __call__(self, request):
# Exit out to async mode, if needed
if asyncio.iscoroutinefunction(self.get_response):
return self.__acall__(request)
response = None
if hasattr(self, 'process_request'):
response = self.process_request(request)…
response = response or self.get_response(request)
if hasattr(self, 'process_response'):
response = self.process_response(request, response)
return response
async def __acall__(self, request):
Variable | Value |
---|---|
request | <WSGIRequest: GET '/platform/property_management_system'> |
response | None |
self | <django.middleware.common.CommonMiddleware object at 0x000001F33201AB50> |
D:\virtual_rhmp\benedict\lib\site-packages\django\middleware\common.py
, line 48, in process_request
user_agent = request.META.get('HTTP_USER_AGENT')
if user_agent is not None:
for user_agent_regex in settings.DISALLOWED_USER_AGENTS:
if user_agent_regex.search(user_agent):
raise PermissionDenied('Forbidden user agent')
# Check for a redirect based on settings.PREPEND_WWW
host = request.get_host()…
must_prepend = settings.PREPEND_WWW and host and not host.startswith('www.')
redirect_url = ('%s://www.%s' % (request.scheme, host)) if must_prepend else ''
# Check if a slash should be appended
if self.should_redirect_with_slash(request):
path = self.get_full_path_with_slash(request)
Variable | Value |
---|---|
request | <WSGIRequest: GET '/platform/property_management_system'> |
self | <django.middleware.common.CommonMiddleware object at 0x000001F33201AB50> |
user_agent | 'claudebot' |
D:\virtual_rhmp\benedict\lib\site-packages\django\http\request.py
, line 137, in get_host
return host
else:
msg = "Invalid HTTP_HOST header: %r." % host
if domain:
msg += " You may need to add %r to ALLOWED_HOSTS." % domain
else:
msg += " The domain name provided is not valid according to RFC 1034/1035."
raise DisallowedHost(msg)…
def get_port(self):
"""Return the port number for the request as a string."""
if settings.USE_X_FORWARDED_PORT and 'HTTP_X_FORWARDED_PORT' in self.META:
port = self.META['HTTP_X_FORWARDED_PORT']
else:
Variable | Value |
---|---|
allowed_hosts | ['www.roonet.co', 'roonet.co'] |
domain | 'www.roonets.co.kr' |
host | 'www.roonets.co.kr' |
msg | ("Invalid HTTP_HOST header: 'www.roonets.co.kr'. You may need to add " "'www.roonets.co.kr' to ALLOWED_HOSTS.") |
port | '' |
self | <WSGIRequest: GET '/platform/property_management_system'> |
[unable to retrieve the current user]
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
APPL_MD_PATH | '/LM/W3SVC/7/ROOT' |
APPL_PHYSICAL_PATH | 'D:\\WEB\\RHMP_P\\' |
APP_POOL_CONFIG | 'C:\\inetpub\\temp\\apppools\\roonet.co\\roonet.co.config' |
APP_POOL_ID | 'roonet.co' |
AUTH_PASSWORD | '********************' |
AUTH_TYPE | '' |
AUTH_USER | '' |
CERT_COOKIE | '' |
CERT_FLAGS | '' |
CERT_ISSUER | '' |
CERT_SERIALNUMBER | '' |
CERT_SUBJECT | '' |
CONTENT_LENGTH | '0' |
CONTENT_TYPE | '' |
DOCUMENT_ROOT | 'D:\\WEB\\RHMP_P' |
GATEWAY_INTERFACE | 'CGI/1.1' |
HTTPS | 'off' |
HTTPS_KEYSIZE | '********************' |
HTTPS_SECRETKEYSIZE | '********************' |
HTTPS_SERVER_ISSUER | '' |
HTTPS_SERVER_SUBJECT | '' |
HTTP_ACCEPT | '*/*' |
HTTP_HOST | 'www.roonets.co.kr' |
HTTP_USER_AGENT | 'claudebot' |
IIS_UrlRewriteModule | '7,1,1993,2351' |
INSTANCE_ID | '7' |
INSTANCE_META_PATH | '/LM/W3SVC/7' |
INSTANCE_NAME | 'ROONET.CO' |
LOCAL_ADDR | '61.74.156.114' |
LOGON_USER | '' |
PATH_INFO | '/platform/property_management_system' |
PATH_TRANSLATED | 'D:\\WEB\\RHMP_P\\platform\\property_management_system' |
QUERY_STRING | '' |
REMOTE_ADDR | '18.118.205.186' |
REMOTE_HOST | '18.118.205.186' |
REMOTE_PORT | '18574' |
REMOTE_USER | '' |
REQUEST_METHOD | 'GET' |
REQUEST_URI | '/platform/property_management_system' |
SCRIPT_FILENAME | 'D:\\WEB\\RHMP_P\\platform\\property_management_system' |
SCRIPT_NAME | '' |
SERVER_NAME | 'www.roonets.co.kr' |
SERVER_PORT | '80' |
SERVER_PORT_SECURE | '0' |
SERVER_PROTOCOL | 'HTTP/1.1' |
SERVER_SOFTWARE | 'Microsoft-IIS/10.0' |
URL | '/platform/property_management_system' |
WEBSOCKET_VERSION | '13' |
wsgi.errors | <_io.StringIO object at 0x000001F332CF11F0> |
wsgi.input | <_io.BytesIO object at 0x000001F333098950> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.path_info | b'/platform/property_management_system' |
wsgi.query_string | b'' |
wsgi.run_once | False |
wsgi.script_name | b'' |
wsgi.url_scheme | 'http' |
wsgi.version | (1, 0) |
rhmp.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALGORITHM | 'HS256' |
ALLOWED_HOSTS | ['www.roonet.co', 'roonet.co'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | WindowsPath('D:/WEB/RHMP_P') |
BASE_PATH | 'D:\\WEB\\RHMP_P' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CERTIFIED_MAIL | 'smtp_113' |
CERTIFIED_PW | 'rns1125!!' |
CORS_ORIGIN_ALLOW_ALL | True |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'sql_server.pyodbc', 'HOST': '61.74.156.122', 'NAME': 'RDESK', 'OPTIONS': {'driver': 'ODBC Driver 17 for SQL Server'}, 'PASSWORD': '********************', 'PORT': '3366', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIGRATE': True, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': 'rdesk'}} |
DATABASE_ROUTERS | [] |
DATA_ROOT | 'D:\\WEB\\RHMP_P\\static/Data/EData/' |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATA_URL | '/' |
DATA_URL_DIRS | ['D:/'] |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_EXCEPTION_REPORTER | 'django.views.debug.ExceptionReporter' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_HASHING_ALGORITHM | 'sha256' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FEED_ROOT | 'D:\\WEB\\RHMP_P\\static/DataFEED/' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | 420 |
FILE_UPLOAD_TEMP_DIR | None |
FIREBASE_API_KEY | '********************' |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['web', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize', 'mathfilters', 'corsheaders'] |
INTERNAL_IPS | [] |
LANGUAGES | [('ko', 'Korean'), ('en', 'English'), ('ch', 'chinese'), ('jp', 'japanese')] |
LANGUAGES_BIDI | ['he', 'ar', 'ar-dz', 'fa', 'ur'] |
LANGUAGE_CODE | 'ko-kr' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_HTTPONLY | False |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LANGUAGE_COOKIE_SAMESITE | None |
LANGUAGE_COOKIE_SECURE | False |
LOCALE_PATHS | ('D:\\WEB\\RHMP_P\\locale',) |
LOGGING | {'disable_existing_loggers': False, 'formatters': {'fileFormat': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '[%(asctime)s] %(levelname)s ' '[%(name)s:%(lineno)s] %(message)s'}}, 'handlers': {'console': {'class': 'logging.StreamHandler', 'formatter': 'fileFormat', 'level': 'DEBUG'}, 'file': {'backupCount': 5, 'class': 'logging.handlers.RotatingFileHandler', 'encoding': 'UTF-8', 'filename': 'D:\\WEB\\RHMP_P\\logs/logfile.log', 'formatter': 'fileFormat', 'level': 'DEBUG', 'maxBytes': 5242880}}, 'loggers': {'mobile': {'handlers': ['file'], 'level': 'DEBUG'}, 'partner': {'handlers': ['file'], 'level': 'DEBUG'}, 'web': {'handlers': ['file'], 'level': 'DEBUG'}}, 'version': 1} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '' |
MEDIA_URL | '/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
RECAPTCHA_SECRET_KEY | '********************' |
RECAPTCHA_SITE_KEY | '********************' |
ROOT_URLCONF | 'rhmp.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | True |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_REFERRER_POLICY | 'same-origin' |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | True |
SESSION_EXPIRE_SECONDS | 3600 |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SESSION_TIMEOUT_REDIRECT | '/CMM/WCM_111' |
SETTINGS_MODULE | 'rhmp.settings' |
SE_TZ | False |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | ['D:\\WEB\\RHMP_P\\static/'] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | 'D:\\WEB\\RHMP_P\\static/' |
STATIC_URL | '/static/' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages'], 'libraries': {'split': 'web.templatetags.split'}}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'Asia/Seoul' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'rhmp.wsgi.application' |
XS_SHARING_ALLOWED_METHODS | ['POST', 'GET', 'OPTIONS', 'PUT', 'DELETE'] |
X_FRAME_OPTIONS | 'ALLOWALL' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.