MCPcopy Create free account
hub / github.com/apache/httpd / add_vhost_test2

Method add_vhost_test2

test/pyhttpd/conf.py:216–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 return self
215
216 def add_vhost_test2(self):
217 domain = f"test2.{self.env.http_tld}"
218 self.start_vhost(domains=[domain, f"www2.{self.env.http_tld}"],
219 port=self.env.http_port, doc_root="htdocs/test2")
220 self.end_vhost()
221 self.start_vhost(domains=[domain, f"www2.{self.env.http_tld}"],
222 port=self.env.https_port, doc_root="htdocs/test2")
223 self.add([
224 "<Location /006>",
225 " Options +Indexes",
226 "</Location>",
227 ])
228 self.end_vhost()
229 return self
230
231 def add_vhost_cgi(self, proxy_self=False, h2proxy_self=False):
232 domain = f"cgi.{self.env.http_tld}"

Callers 1

_class_scopeMethod · 0.95

Calls 3

start_vhostMethod · 0.95
end_vhostMethod · 0.95
addMethod · 0.95

Tested by 1

_class_scopeMethod · 0.76