Line 1: |
Line 1: |
| + | {{usefulnote}} |
| ==Proxy Pass== | | ==Proxy Pass== |
| | | |
Line 19: |
Line 20: |
| db domains delete proxypassdomain.com | | db domains delete proxypassdomain.com |
| signal-event domain-delete proxypassdomain.com | | signal-event domain-delete proxypassdomain.com |
| + | |
| + | Note that using the settings above 'TemplatePath' is set to 'ProxyPassVirtualHosts' which will read templates in: |
| + | |
| + | /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ProxyPassVirtualHosts |
| + | |
| + | It is perfectly possible to use your own templates for more specialised settings: |
| + | |
| + | cp -R /etc/e-smith/templates/etc/httpd/conf/httpd.conf/ProxyPassVirtualHosts /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/MyProxyPassHost |
| + | |
| + | Now you can edit the templates in 'MyProxyPassHost' and use your own advanced settings as you require. |
| + | |
| + | db domains setprop proxypassdomain.com TemplatePath MyProxyPassHost |
| | | |
| {{Note box|msg=If you have added the internal or external server's domain name as a virtual domain on the SME Server, you must remove it prior to issuing these commands. The server-manager domains panel will show the proxy pass entry but you will not be able to edit it, see [[bugzilla:1612]]}} | | {{Note box|msg=If you have added the internal or external server's domain name as a virtual domain on the SME Server, you must remove it prior to issuing these commands. The server-manager domains panel will show the proxy pass entry but you will not be able to edit it, see [[bugzilla:1612]]}} |
Line 244: |
Line 257: |
| Google | | Google |
| | | |
− | ====DNS Forwarding====
| + | ==DNS Forwarding== |
| | | |
| The dnscache service can be configured to forward all queries for a specific domain to an alternate server, or to block DNS for a domain by configuring forwarding to 'localhost', without affecting any other services or configuration files. See [[Bugzilla:6848]] | | The dnscache service can be configured to forward all queries for a specific domain to an alternate server, or to block DNS for a domain by configuring forwarding to 'localhost', without affecting any other services or configuration files. See [[Bugzilla:6848]] |
Line 255: |
Line 268: |
| To block lookups for <domainname>: | | To block lookups for <domainname>: |
| db domains set <domainname> domain-remote localhost | | db domains set <domainname> domain-remote localhost |
| + | [[Category: Howto]] |