mod_proxy_express.c revision fe8dcfb48d53be752bc25d80e6c8a922ee8d5ef2
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna/* Licensed to the Apache Software Foundation (ASF) under one or more
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * contributor license agreements. See the NOTICE file distributed with
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * this work for additional information regarding copyright ownership.
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * The ASF licenses this file to You under the Apache License, Version 2.0
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * (the "License"); you may not use this file except in compliance with
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * the License. You may obtain a copy of the License at
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * Unless required by applicable law or agreed to in writing, software
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * distributed under the License is distributed on an "AS IS" BASIS,
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * See the License for the specific language governing permissions and
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna * limitations under the License.
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquernastatic int proxy_available = 0;
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquernatypedef struct {
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna const char *arg)
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna sconf = ap_get_module_config(cmd->server->module_config, &proxy_express_module);
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna if ((sconf->dbmfile = ap_server_root_relative(cmd->pool, arg)) == NULL) {
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna return apr_pstrcat(cmd->pool, "ProxyExpressDBMFile: bad path to file: ",
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna const char *arg)
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna sconf = ap_get_module_config(cmd->server->module_config, &proxy_express_module);
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna sconf = ap_get_module_config(cmd->server->module_config, &proxy_express_module);
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquernastatic void *server_create(apr_pool_t *p, server_rec *s)
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna a = (express_server_conf *)apr_pcalloc(p, sizeof(express_server_conf));
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquerna return (void *)a;
f997d134bcee6bfa4cd87b69acee96e80c5a358bpquernastatic void *server_merge(apr_pool_t *p, void *basev, void *overridesv)
sizeof(express_server_conf));
server_rec *s)
return OK;
const char *name;
char *backend;
return DECLINED;
return DECLINED;
return DECLINED;
return DECLINED;
if (!backend) {
return DECLINED;
if (!ralias) {
return OK;
{ NULL }