All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code MUST retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form MUST reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> apachevirtualhost 1.0 Apache reverse proxy: Site Proxies Mod_Security+Apache+Proxy
Services
apache_virtualhost.xml
/usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security.inc /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security.template /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security_groups.xml /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security_settings.xml /usr/local/www/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security_view_logs.php /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache.template /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_balancer.template /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_balancer.xml /usr/local/www/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_logs_data.php /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security_manipulation.xml /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_mod_security_sync.xml /usr/local/pkg/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_settings.xml /usr/local/www/ 0644 http://www.pfsense.com/packages/config/apache_mod_security-dev/apache_view_logs.php /usr/local/www/shortcuts/ 0755 http://www.pfsense.org/packages/config/apache_mod_security-dev/pkg_apache.inc Apache /pkg_edit.php?xml=apache_settings.xml&id=0 ModSecurity /pkg_edit.php?xml=apache_mod_security_settings.xml Sync /pkg_edit.php?xml=apache_mod_security_sync.xml Daemon Options /pkg_edit.php?xml=apache_settings.xml 2 Backends / Balancers /pkg.php?xml=apache_balancer.xml 2 Virtual Hosts /pkg.php?xml=apache_virtualhost.xml 2 Logs /apache_view_logs.php 2 on Status enable Enabled Disabled Iface interface protocol proto Server name(s) primarysitehostname base64 port port Description description Listening Options listtopic Enable enable Enable this virtual host checkbox Protocol(s) proto Select protocols that this virtual host will accept connections select Server Name(s) primarysitehostname Leave blank and define the IP Address / port above for IP site proxy (i.e. not named site proxy)]]> 40 2 textarea base64 Inbound Interface(s) interface WAN
Select interface(s) that this virtualhost will listen on.]]>
interfaces_selection
Port port Leave blank to use the default global port. 10 input Site Webmaster E-Mail address siteemail 50 input Site description description 50 input HTTPS SSL certificate ssl_cert Choose the SSL Server Certificate here. select_source descr refid none intermediate CA certificate(optional) reverse_int_ca Select intermediate CA assigned to certificate. Not all certificates require this. select_source descr refid none listtopic locations rowhelper on compress Compress data to save bandwidth? select sitepath leave blank to use /]]> input 12 balancer Server balancer / pool name name none select_source 5 LB Method]]> lbmethod Server balance method select Backend Path backendpath Leave blank to use /]]> input 12 modsecgroup Choose ModSecurity group to use on this virtual host. select_source name name none modsecmanipulation Choose Modsecurity group to use on this virtual host. select_source name name none   Balancer options]]> options ex: ttl=60 stickysession='JSESSIONID']]> input 11 Location Custom Settings custom textarea 65 10 base64 Logging listtopic Preserve Proxy hostname preserveproxyhostname checkbox Log file logfile select Custom Options listtopic Custom Options custom Pass extra Apache config for this VirtualHost. This is useful for Rewrite rules for example. textarea 90 10 base64
apache_mod_security apache_mod_security.sh httpd apache_mod_security_resync(); /usr/local/pkg/apache_mod_security.inc