Falcon v0.2.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.url_scheme': scheme, 'wsgi.input': body0 码力 | 188 页 | 358.44 KB | 1 年前3
Falcon v1.0.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.version': (1, 0), 'wsgi.url_scheme': scheme0 码力 | 249 页 | 406.22 KB | 1 年前3
CakePHP Cookbook 2.x
instance. server { listen 80; server_name www.example.com; rewrite ^(.*) http://example.com$1 permanent; } server { listen 80; server_name example.com; # root directive should authentication supports the following keys: realm The realm being authenticated. Defaults to env('SERVER_NAME'). In addition to the common configuration Digest authentication supports the following keys: $this->data[$this->alias]['username'], $this->data[$this->alias]['password'], env('SERVER_NAME') ); return true; } } Passwords for digest authentication need a bit more information0 码力 | 1096 页 | 958.62 KB | 1 年前3
Falcon v1.0.0 Documentationhost = env['HTTP_HOST'] except KeyError: host = env['SERVER_NAME'] port = env['SERVER_PORT'] if protocol == 'https': According to PEP-3333, this header # will always be present. host = self.env['SERVER_NAME'] return host @property def subdomain(self): # PERF(kgriffs): .partition 'REMOTE_PORT': '65133', 'RAW_URI': '/', 'REMOTE_ADDR': '127.0.0.1', 'SERVER_NAME': host, 'SERVER_PORT': port, 'wsgi.version': (1, 0), 'wsgi.url_scheme': scheme0 码力 | 312 页 | 368.58 KB | 1 年前3
CakePHP Cookbook 2.x
running as a FastCGI instance. server { listen 80; server_name www.example.com; rewrite ^(.*) http://example.com$1 permanent; } server { listen 80; server_name example.com; # root directive should be global authentication supports the following keys: • realm The realm being authenticated. Defaults to env('SERVER_NAME'). In addition to the common configuration Digest authentication supports the following keys: password( $this->data[$this->alias]['username'], $this->data[$this->alias]['password'], env('SERVER_NAME') ); return true; } } Passwords for digest authentication need a bit more information than other0 码力 | 820 页 | 2.52 MB | 1 年前3
The PHP Handbook
ones you might use are $_SERVER['HTTP_HOST'] 69 $_SERVER['HTTP_USER_AGENT'] $_SERVER['SERVER_NAME'] $_SERVER['SERVER_ADDR'] $_SERVER['SERVER_PORT'] $_SERVER['DOCUMENT_ROOT'] $_SERVER['REQUEST_URI']0 码力 | 97 页 | 8.78 MB | 1 年前3
Falcon v2.0.0 Documentation# NOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: return webapp2_app(environ something like this: Listing 3: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error0 码力 | 184 页 | 671.87 KB | 1 年前3
Falcon v2.0.0 DocumentationNOTE(kgriffs): According to PEP-3333, this header # will always be present. host = environ['SERVER_NAME'] if host.startswith('api.'): return falcon_app(environ, start_response) elif: that looks something like this: /etc/nginx/sites-avaiable/myproject.conf server { listen 80; server_name myproject.com; access_log /var/log/nginx/myproject-access.log; error_log /var/log/nginx/myproject-error0 码力 | 265 页 | 299.57 KB | 1 年前3
CakePHP Cookbook 3.x
80; listen [::]:80; server_name www.example.com; return 301 http://example.com$request_uri; } server { listen 80; listen [::]:80; server_name example.com; root /var/www/example authentication supports the following keys: realm The realm being authenticated. Defaults to env('SERVER_NAME'). In addition to the common configuration Digest authentication supports the following keys: DigestAuthenticate::password( $entity->username, $entity->plain_password, env('SERVER_NAME') ); return true; } } Passwords for digest authentication need a bit more information0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 3.x
server { listen 80; listen [::]:80; server_name www.example.com; return 301 http://example.com$request_uri; } server { listen 80; listen [::]:80; server_name example.com; root /var/www/example.com/public/webroot; authentication supports the following keys: • realm The realm being authenticated. Defaults to env('SERVER_NAME'). In addition to the common configuration Digest authentication supports the following keys: $entity->digest_hash = DigestAuthenticate::password( $entity->username, $entity->plain_password, env('SERVER_NAME') ); return true; } } Passwords for digest authentication need a bit more information than other0 码力 | 967 页 | 2.80 MB | 1 年前3
共 39 条
- 1
- 2
- 3
- 4













