Kim Alvefur
29c9d1f508
Merge 0.10->trunk
2018-10-14 14:19:21 +02:00
Kim Alvefur
2a573e5c5e
mod_http: Make sure path from http_external_url always ends with a slash ( fixes #1183 )
2018-10-14 14:01:57 +02:00
Kim Alvefur
93b55928f6
mod_http: Support global HTTP modules
...
Such modules simply ignore the Host header and always handle the same path.
2018-09-21 23:49:56 +02:00
Kim Alvefur
a31b6728d4
Revert 2dc7490899ae::5d6b252bc36f: Unfinished and broken
2018-09-21 22:14:40 +02:00
Kim Alvefur
7c060d6be5
mod_http: Hook the host-less event if hooked from a global module
2018-09-21 21:19:44 +02:00
Kim Alvefur
c6540b14f9
net.http.server: Move handling of hosts to mod_http
...
Now an event like `GET /path` is fired at first, and mod\_http
dispatches the old `GET host/path` events.
2018-09-21 21:19:41 +02:00
Kim Alvefur
78dbad124a
mod_http: Rename argument to avoid name clash with outer scope [luacheck]
2018-07-06 00:15:10 +02:00
Kim Alvefur
d0f783842e
mod_http: Rename loop variable to avoid name clash [luacheck]
2018-07-06 00:14:47 +02:00
Kim Alvefur
c27c3940c7
mod_http: Rename loop variable to avoid name clash [luacheck]
2018-07-06 00:13:45 +02:00
Kim Alvefur
bf3c8c2b1a
mod_http: Silecence harmless warnings
2018-07-06 00:12:38 +02:00
Kim Alvefur
060ab50b41
mod_http: Pass util.events object to API, fixes traceback
2018-03-16 08:47:51 +01:00
Kim Alvefur
4cdc813fed
mod_http: Set request.ip on all HTTP requests (moves code out of mod_bosh) ( fixes #540 )
2018-03-15 17:22:49 +01:00
Kim Alvefur
4c6a84a00e
Merge 0.10->trunk
2017-01-26 19:47:33 +01:00
Kim Alvefur
a67d0bfb97
util.sslconfig: Remvoe flag merging for 'verify' as this is more of a tri-state field than a set of options
2017-01-26 14:18:30 +01:00
Kim Alvefur
782117034d
Merge 0.10->trunk
2016-08-18 17:36:46 +02:00
Kim Alvefur
860d3a58b8
Merge 0.9->0.10
2016-08-18 15:16:02 +02:00
Kim Alvefur
1686ef5d53
mod_http: Allow configuring http parser size limits
2016-08-18 14:51:11 +02:00
Emmanuel Gil Peyrot
2368529f51
mod_http: Fix indentation in redir_handler
2016-07-24 17:36:53 +01:00
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
2016-04-16 21:08:05 +01:00
daurnimator
d7ffd11752
plugins/mod_http: Keep query string over automatic redirects
2016-02-15 16:28:22 +11:00
Matthew Wild
46aa864c3d
Backout unintentional commit ed5440a6ef7f
2015-12-03 16:21:56 +00:00
Matthew Wild
0bd9169930
Merge 0.10->trunk
2015-12-03 16:13:12 +00:00
Matthew Wild
29f906c30d
Merge 0.9->0.10 (third time lucky)
2015-03-27 22:11:58 +00:00
Kim Alvefur
5efd433b8a
mod_http: Return a static string from module:http_url() when no ports are enabled and log a warning
2015-03-23 18:45:02 +01:00
Kim Alvefur
3550cf7e8e
mod_http: Log a debug message when adding new http apps and warn if no http ports are enabled
2015-03-23 18:44:12 +01:00
Kim Alvefur
272f0cf5e5
Backout 7726b627c3ea
2015-03-23 18:40:12 +01:00
Matthew Wild
45016aef35
mod_http: Log event name when adding a HTTP app's hooks
2015-03-14 22:39:23 +00:00
Kim Alvefur
b1889326c4
Backed out 35ebcb733c4c
2015-03-23 18:42:11 +01:00
Kim Alvefur
52642e5699
mod_http: Log name and base URL of HTTP apps
2014-12-08 15:49:11 +01:00
Kim Alvefur
597c04000e
mod_http: For URLs that end with / or wildcard handlers, add a low-priority redirect from without to with slash
2014-11-04 17:48:17 +01:00
Kim Alvefur
b9350a6264
mod_http: Update to disable peer verification with the new certmanager
2014-04-19 21:59:53 +02:00
Kim Alvefur
42c4183e34
Merge 0.9->0.10
2014-02-26 22:21:55 +01:00
Kim Alvefur
4ee0ced8eb
mod_http: Fix http_external_url setting without an explicit port
2014-02-26 22:19:58 +01:00
Kim Alvefur
c9cc08e80d
mod_http: Use hostname from the correct context (thanks gryffus)
2014-02-20 19:08:55 +01:00
Florian Zeitz
1d833bb807
Remove all trailing whitespace
2013-08-09 17:48:21 +02:00
Marco Cirillo
622306813b
mod_http: disable ssl peer verification by default.
2013-04-04 23:41:36 +00:00
Kim Alvefur
4a30cfbc90
mod_http: Import portmanager
2013-03-23 01:42:27 +01:00
Kim Alvefur
8e233c797e
mod_http: Expand $host in http_paths
2013-02-18 13:12:14 +01:00
Kim Alvefur
329ee389c5
mod_http: Fix path length pattern
2012-12-09 12:20:55 +01:00
Matthew Wild
d7b707744d
mod_http: Fix pattern and slightly improve efficiency and memory usage of wildcard HTTP handlers
2012-11-29 07:15:04 +05:00
Kim Alvefur
67144d911b
mod_http: Make module:http_url() aware of http_host
2012-11-22 20:40:06 +01:00
Matthew Wild
7f962c6d08
mod_http: Rename variable for clarity
2012-11-22 17:38:53 +00:00
Matthew Wild
e4c43fa10a
mod_http: Add 'http_host' option to change the HTTP virtual host that this host is accessible at (e.g. allows mapping a host to '127.0.0.1')
2012-11-15 13:24:10 -05:00
Waqas Hussain
d9d38ef125
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
2012-09-12 22:22:31 +05:00
Kim Alvefur
df886d2043
mod_http: Rework how module:http_url() builds the url.
2012-08-21 21:10:54 +02:00
Kim Alvefur
76c09d2ad1
mod_http: Don't produce paths with double / if a module is set to serve /
2012-08-21 21:03:20 +02:00
Kim Alvefur
9f65ce7189
core.certmanager: Do not ask for client certificates by default
...
Since it's mostly only mod_s2s that needs to request client
certificates it makes some sense to have mod_s2s ask for this, instead
of having eg mod_http ask to disable it.
2019-03-10 19:58:28 +01:00
Kim Alvefur
3434e4560f
mod_http: Determine CORS methods to whitelist from actual methods used
2019-01-17 20:42:38 +01:00
Kim Alvefur
19d344e092
mod_http: Set up to handle OPTIONS
...
Lower priority to allow http modules to handle it themselves, should
they wish to
2019-01-18 02:03:40 +01:00
Kim Alvefur
87639540e4
mod_http: Solve CORS problems once and for all
...
This blindly allows any cross-site requests.
Future work should add an API to allow each HTTP app some influence over
this for each HTTP path
2018-10-04 12:22:12 +02:00