Changes

Jump to navigation Jump to search
Line 300: Line 300:  
===Proxy Pass===
 
===Proxy Pass===
   −
*I want to pass some http requests to a server behind my SME Server or external to my site, how can I do this?
+
* Je veux rediriger des requetes http vers un serveur derriere mon serveur SME ou externe a mon site, comment faire cela ?
   −
You can set a ProxyPass directive that will pass certain requests to an internal or external server that hosts the domain to be proxypassed:
+
Vous pouvez creer une directive ProxyPass qui renverra certaines requetes vers un serveur interne ou externe au domaine qui doit etre le relais :
  db domains set proxypassdomain.com domain  
+
  db domains set proxypassdomaine.com domain  
  db domains setprop proxypassdomain.com Nameservers internet
+
  db domains setprop proxypassdomaine.com Nameservers internet
  db domains setprop proxypassdomain.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
+
  db domains setprop proxypassdomaine.com ProxyPassTarget http://xxx.xxx.xxx.xxx/
  db domains setprop proxypassdomain.com TemplatePath ProxyPassVirtualHosts  
+
  db domains setprop proxypassdomaine.com TemplatePath ProxyPassVirtualHosts  
  signal-event domain-create proxypassdomain.com
+
  signal-event domain-create proxypassdomaine.com
where proxypassdomain.com is the domain name hosted on the internal or external server
  −
and http://xxx.xxx.xxx.xxx/ is the IP address of the internal or external server eg 192.168.1.20 or 122.456.12.171 (it must be the publicly accessible IP if an external server)
      +
Ou proxypassdomaine.com est le nom de domaine supportant le serveur interne ou externe
 +
et http://xxx.xxx.xxx.xxx/ est l'adresse interne ou externe du serveur par exemple 192.168.1.20 ou 122.456.12.171 (Cela doit etre l'adresse publiquement accessible dans le cas d'un serveur externe)
   −
To delete a ProxyPass directive that you previously set up:
+
Pour effacer une directive ProxyPass qui a été précedemment mise en place :
  db domains delete proxypassdomain.com
+
  db domains delete proxypassdomaine.com
  signal-event domain-delete proxypassdomain.com
+
  signal-event domain-delete proxypassdomaine.com
    
{{Note box|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|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]].
46

edits

Navigation menu