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

Method add_vhost_test1

test/pyhttpd/conf.py:200–214  ·  view source on GitHub ↗
(self, proxy_self=False, h2proxy_self=False)

Source from the content-addressed store, hash-verified

198 return self
199
200 def add_vhost_test1(self, proxy_self=False, h2proxy_self=False):
201 domain = f"test1.{self.env.http_tld}"
202 self.start_vhost(domains=[domain, f"www1.{self.env.http_tld}"],
203 port=self.env.http_port, doc_root="htdocs/test1")
204 self.end_vhost()
205 self.start_vhost(domains=[domain, f"www1.{self.env.http_tld}"],
206 port=self.env.https_port, doc_root="htdocs/test1")
207 self.add([
208 "<Location /006>",
209 " Options +Indexes",
210 "</Location>",
211 ])
212 self.add_proxies("test1", proxy_self, h2proxy_self)
213 self.end_vhost()
214 return self
215
216 def add_vhost_test2(self):
217 domain = f"test2.{self.env.http_tld}"

Callers 1

_class_scopeMethod · 0.95

Calls 4

start_vhostMethod · 0.95
end_vhostMethod · 0.95
addMethod · 0.95
add_proxiesMethod · 0.95

Tested by 1

_class_scopeMethod · 0.76