Hi,

That is what I done to configure the apache server with 2 servers (one running 
on 8181 and the other on 8080):
<VirtualHost *>
        ProxyPreserveHost On
        ProxyRequests Off
        RewriteEngine On
        RewriteRule ^/<my service>/(.*)$ http://localhost:8181/< my service 
>/$1 [proxy]
        RewriteRule ^(.*)$ http://localhost:8080$1 [proxy,last]
        ErrorLog /var/log/httpd/testServerError.log
        CustomLog /var/log/httpd/testServerCustom.log combined
</VirtualHost>


Vincent

> -----Message d'origine-----
> De : Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] De la part de
> Sven Van Caekenberghe
> Envoyé : mercredi 18 janvier 2017 19:49
> À : Any question about pharo is welcome
> Objet : Re: [Pharo-users] [Deployement] Apache rewrite rules for Pharo
>
> There is also this chapter:
>
> https://ci.inria.fr/pharo-
> contribution/job/EnterprisePharoBook/lastSuccessfulBuild/artifact/book-
> result/DeploymentWeb/DeployForProduction.html
>
> which contains the same solution and more.
>
> > On 18 Jan 2017, at 19:04, Steven Costiou <steven.cost...@kloum.io>
> wrote:
> >
> > Hi,
> >
> > not sure that's what you are looking for but for my Pharo images with Iliad
> applications i just add the following to my website vhost in the /etc/apache
> directory:
> >
> > ProxyPass / http://localhost:7777/
> > ProxyPassReverse / http://localhost:7777/
> >
> > That redirects all queries to my domain to this local url, for example
> > http://my-domain.com/iliad => http://localhost:7777/iliad
> >
> > Works fine but i don't even know if its the right thing to do (security
> blabla...). I'm interested if someone knows a simpler procedure.
> >
> > Steven.
> >
> >
> > Le 2017-01-18 18:22, Blondeau Vincent a écrit :
> >
> >> Hi,
> >> I need to put on the same server and access through the port 80 several
> Pharo images.
> >> I know that it is possible to do it thanks to the apache rewrite rules to
> redirect outside urls http://myserver:80/myservice to internal ones:
> http://localhost:8080.
> >> Did someone already make such a config and can share the xml of the
> configuration file?
> >> Thanks in advance,
> >> Cheers,
> >> Vincent Blondeau
> >>
> >>
> >>
> >>
> >>
> !!!********************************************************
> **********
> >> ******************* "Ce message et les pièces jointes sont
> >> confidentiels et réservés à l'usage exclusif de ses destinataires. Il peut
> également être protégé par le secret professionnel. Si vous recevez ce
> message par erreur, merci d'en avertir immédiatement l'expéditeur et de le
> détruire. L'intégrité du message ne pouvant être assurée sur Internet, la
> responsabilité de Worldline ne pourra être recherchée quant au contenu de
> ce message. Bien que les meilleurs efforts soient faits pour maintenir cette
> transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à
> cet égard et sa responsabilité ne saurait être recherchée pour tout dommage
> résultant d'un virus transmis.
> >>
> >> This e-mail and the documents attached are confidential and intended
> solely for the addressee; it may also be privileged. If you receive this 
> e-mail in
> error, please notify the sender immediately and destroy it. As its integrity
> cannot be secured on the Internet, the Worldline liability cannot be triggered
> for the message content. Although the sender endeavours to maintain a
> computer virus-free network, the sender does not warrant that this
> transmission is virus-free and will not be liable for any damages resulting
> from any virus transmitted.!!!"
> >
> >
>


!!!*************************************************************************************
"Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité de Worldline ne pourra être 
recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Worldline liability cannot be triggered for the 
message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.!!!"

Reply via email to