<<

NAME

pf::web::constants - Constants for the captive portal

DESCRIPTION

This file is splitted by packages and refering to the constant requires you to specify the package.

SUBROUTINES

to_hash

Return all the WEB constants in an hash. This is to ease consumption by Template Toolkit.

WEB

URLs

See conf/httpd.conf.d/captive-portal-cleanurls.conf to see to which CGI they map.

Apache Config related

Aliases for static content

URI => filesystem component

Filesystem portion is prefixed by $install_dir before installing into Apache config.

ALLOWED_RESOURCES

Build a regex that will decide what is considered a local ressource (allowed to Apache's further processing).

URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).

Anything else should be redirected. This happens in pf::web::dispatcher.

ALLOWED_RESOURCES_MOD_PERL

Build a regex that will decide what is considered as a mod_perl ressource (allowed to Apache's further processing).

URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).

Anything else should be redirected. This happens in pf::web::dispatcher.

LOCALES

Supported locales must be generated on the server and also have their binary catalog (.mo) under /usr/local/pf/conf/locale/. Notice that a PacketFence translation generated for a two-letter language code (ex: fr) will be used for any locale matching the language code (ex: fr_FR and fr_CA).

ALLOWED_RESOURCES_PROFILE_FILTER

Build a regex that will decide what is considered a local ressource (allowed to Apache's further processing).

URL ending with / will only be anchored at the beginning (^/path/) otherwise an ending anchor is also installed (^/file$).

Anything else should be redirected. This happens in pf::web::dispatcher.

EXTERNAL_PORTAL_PARAM

Build a regex that will decide what is considered as a external portal var parameter.

This parameter should be something that contain the mac or ip address of the switch.

EXTERNAL_PORTAL_URL

Build a regex that will decide what is considered as a external portal URL.

This URL should point to a module in pf::Switch that can extract the mac or ip of the switch from the URL.

_clean_urls_match

Return a regex that would match all the captive portal allowed clean URLs

_clean_urls_match_mod_perl

Return a regex that would match all the captive portal allowed clean URLs

_clean_urls_match_filter

Return a regex that would match all the portal profile uri: filter

_clean_urls_match_mod_perl

Return a regex that would match all the captive portal allowed clean URLs

_clean_urls_match_ext_url

Return a regex that would match all the captive portal allowed clean URLs

AUTHOR

Inverse inc. <info@inverse.ca>

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<<